필터 지우기
필터 지우기

User defined function for three scripts

조회 수: 1 (최근 30일)
matlabgod
matlabgod 2018년 10월 22일
댓글: matlabgod 2018년 10월 22일
So I have three scripts that each create a different wave plot using the same inputs. How can I make a program that asks the user for the three inputs first, then asks which type of wave then displays the plot?

채택된 답변

Stephan
Stephan 2018년 10월 22일
Hi,
read about input and case/switch/otherwise. Then save your three different functions with the corresponding name in your Matlab Path and call them in dependence of the user choice (by input) with the arguments given by the user. - Thats it.
Best regards
Stephan

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by