필터 지우기
필터 지우기

Replace matlab function with user defined function in code

조회 수: 3 (최근 30일)
demos serghiou
demos serghiou 2022년 12월 30일
댓글: Stephen23 2022년 12월 30일
Hi, the existing function is as follows:
[a,e] = arburg(est_x1,PSam,k);
I would like to replace the arburg fucntion with the function in arburgw1.m in the code. How can I do that?
  댓글 수: 4
Zahrah Walid
Zahrah Walid 2022년 12월 30일
function [a,e]= arburgw( x, p, ventana)
..
end
Stephen23
Stephen23 2022년 12월 30일
"how do i get [a,e] from this function?"
Once you write a callable function (i.e not a script, as explained in my last comment), then you can simply call it with those output arguments, just as the introductory tutorials show:
[a_out,e_out] = arburgw1(..)
Note that you should replace the evil EVAL() with slightly more robust FEVAL().

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by