Replace matlab function with user defined function in code

1 Ansicht (letzte 30 Tage)
demos serghiou
demos serghiou am 30 Dez. 2022
Kommentiert: Stephen23 am 30 Dez. 2022
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 Kommentare
Zahrah Walid
Zahrah Walid am 30 Dez. 2022
function [a,e]= arburgw( x, p, ventana)
..
end
Stephen23
Stephen23 am 30 Dez. 2022
"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().

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Language Support finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by