Info

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

How to run a m file in a function which is called in another main m file?

조회 수: 1 (최근 30일)
Saiprasad Gore
Saiprasad Gore 2017년 5월 9일
마감: Walter Roberson 2017년 5월 9일
I want to Load variables taken from a user in a function. I could think of two ways. 1) I created a m file to take user input ( So I have 3 files- Main m file, Function, Input m file) Now I wanted to run that Input m file in a function which is called in the main m file. How could I load workspace variables from that input m file into the function. 2) To take input in The main m file ( I have 2 files- Main m file, Function) Now I want to load all the variables in workspace in that called function As there are many variables in workspace (approx 20) which are required in the function, Is there any short cut to load all the workspace variables in that function?
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 5월 9일
Duplicates https://www.mathworks.com/matlabcentral/answers/339394-how-to-run-a-m-file-in-a-function-which-is-called-in-another-m-file

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by