How can I know the the size of an inline or anonymous vectorial expression?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
David González
am 6 Jun. 2014
Kommentiert: Sean de Wolski
am 6 Jun. 2014
I need to know if there is a way to know the length/size of a inline expression. In the example, the expression inside the inline is '[(t/2)*u2+u2*t; u2]', which has length 2, I need a command that returns that value for any vector inside the function.
F=inline('[(t/2)*u2+u2*t; u2]', 't', 'u2')
0 Kommentare
Akzeptierte Antwort
José-Luis
am 6 Jun. 2014
Bearbeitet: José-Luis
am 6 Jun. 2014
nargin(F)
Please accept an answer if it helped you.
1 Kommentar
Sean de Wolski
am 6 Jun. 2014
Assuming size meant number of inputs and not size of the output array. Output size is not necessarily static so can't be measured without trial and error.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Function Creation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!