Info
此问题已关闭。 请重新打开它进行编辑或回答。
Writing a function (.m executable) - how do I perform tasks on my workspace variables?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Naz
2011-12-3
pass your blah matrix as an argument to your function:
yourfunction(blah1,blah2);
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!