필터 지우기
필터 지우기

Call for value of a variable in one mfile to another mfile

조회 수: 1 (최근 30일)
Sreet Swastik
Sreet Swastik 2013년 3월 27일
I have a mfile named motor_model.m. I have another mfile named controller.m where I am calling motor_model.m in the first line. Now the output of motor_model.m is the steady state current which is stored in a vatiable named I_steadystate whose value needs to be called in controller.m. Could you give me the code as to how I can do this?

채택된 답변

Image Analyst
Image Analyst 2013년 3월 27일
This is discussed in the FAQ
  댓글 수: 2
Sreet Swastik
Sreet Swastik 2013년 3월 27일
Can you exactly show me where is it?
Image Analyst
Image Analyst 2013년 3월 27일
I did. What happened when you clicked on the link in my message? Well try again with this address: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by