Info
此问题已关闭。 请重新打开它进行编辑或回答。
How do i import data from a function ?
1 次查看(过去 30 天)
显示 更早的评论
My function asks for a choice between 2 specific options :
disp('1. No Wall');
disp('2. Two-Side Wall');
coursetype=input('Choose one of the above:');
I want to extract the data in coursetype and use it in a normal m file , how do i do that?
The coursetype is also not the output for this particular function , it is just a option to vary the kind of output in the graph.
0 个评论
回答(2 个)
M..
2016-10-4
You can create a handle in your file and send it as an input to the function. Then, you don't need to return it as an output.
0 个评论
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!