call my function by command line
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hugo
am 20 Jan. 2014
Kommentiert: Hugo
am 22 Jan. 2014
I'm working on a MATLAB function which i want to implement on a existing GUI. Now i received the command line that should be used to call my function, but i'm not sure how to implement it in my function. The commandline looks like:
function.exe –r <return directory> <seriesdirectory>
How should i start my function to make it work with this command line?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 20 Jan. 2014
function YourFunction( returndir, seriesdir )
and returndir and seriesdir will be strings when the function is called.
Note: you will not be able to name it "function".
3 Kommentare
Walter Roberson
am 21 Jan. 2014
if .... whatever condition
seriesdir = 'forward';
else
seriesdir = 'backward';
end
YourFunction(returndir, seriesdir);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations 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!