Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Writing a function (.m executable) - how do I perform tasks on my workspace variables?

1 visualización (últimos 30 días)
Pocho
Pocho el 3 de Dic. de 2011
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have arrays called "Blah1", "Blah2", etc., in the workspace, and I want to write a function that finds the max of "Blah1", etc., and writes these max values to a text file.
I am not sure how to indicate in the .m file that I am performing the function on 'Blah." I'm good with the writing to a text file part.
Ideas?
Thanks,
Pocho

Respuestas (2)

Naz
Naz el 3 de Dic. de 2011
pass your blah matrix as an argument to your function:
yourfunction(blah1,blah2);

Walter Roberson
Walter Roberson el 3 de Dic. de 2011

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by