call value

1 Ansicht (letzte 30 Tage)
ahmed elnashar
ahmed elnashar am 8 Apr. 2012
how to call value from another m-file Ex: r=1.654 how to call r in another m-file thank you

Antworten (1)

Image Analyst
Image Analyst am 8 Apr. 2012
If the FAQ ( http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F) doesn't answer your questions, then please write back.
  2 Kommentare
Ahmed Hassaan
Ahmed Hassaan am 8 Apr. 2012
well his question means that : he is emerging two mfiles in one mfile ,and he want to get the last value in the first mfile and apply it on the second mfile . how to get the last variable and put it in the second ?
Image Analyst
Image Analyst am 8 Apr. 2012
Well, maybe he wants that, but that's not exactly what he said. He said he wanted to see the value of "r", that the first m-file has, in a second m-file that is running. That's why I referred him to the place where he can get the answer.
If he wants to merge two m-files into one, then he should use fopen(), fgetl(), and fclose(), but I really don't think he wants to combine files.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by