How can one refer to the calculation in a function m-file?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 1 Jun. 2020
Kommentiert: alpedhuez
am 2 Jun. 2020
I have a livescript file main.mlx. The file refers to a function m file test.m. In this test.m I calculate
s1=polyvar(x,y).
I want to use s1 in main.mix to calculate polyfit. What should one do?
1 Kommentar
dpb
am 2 Jun. 2020
Call test with place to store the returned result -- presuming, of course, the function was written to return the desired result. If that's not the case will have to rewrite at least the function line to return the desired output.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Variables 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!