Borrar filtros
Borrar filtros

How to pass .mat contents to be used in m-file?

2 visualizaciones (últimos 30 días)
Mus'ab Ahmad
Mus'ab Ahmad el 2 de Feb. de 2016
Comentada: random09983492 el 2 de Feb. de 2016
Hiya,
I managed to save the data that is entered in GUI in .mat file. Separately, I wrote an m-file (not function) that performs some calculations based on some declared variables (e.g. x = 0.1, y = 20, etc.) at the beginning of this m-file, and then shows the results in figures.
My question is: how can I pass these data that are entered in the GUI then saved in .mat file to be used in the m-file instead of the manually declared variables (i.e. pass the values of x, y, etc. and then perform the calculations and plot the the results)? Also, are there any changes required to the m-file (make it a function or functions)?
Many thanks
  1 comentario
random09983492
random09983492 el 2 de Feb. de 2016
If I understand your question correctly, I believe you are looking for the load function.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by