Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Writing a function (.m executable) - how do I perform tasks on my workspace variables?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have arrays called "Blah1", "Blah2", etc., in the workspace, and I want to write a function that finds the max of "Blah1", etc., and writes these max values to a text file.
I am not sure how to indicate in the .m file that I am performing the function on 'Blah." I'm good with the writing to a text file part.
Ideas?
Thanks,
Pocho
0 Kommentare
Antworten (2)
Naz
am 3 Dez. 2011
pass your blah matrix as an argument to your function:
yourfunction(blah1,blah2);
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!