Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do i import data from a function ?

조회 수: 1 (최근 30일)
Nitesh Panchal
Nitesh Panchal 2016년 10월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
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.

답변 (2개)

Sima
Sima 2016년 10월 4일
Why don't you just return this information as another output of the function?

M..
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.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by