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

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

This question is closed.

Asked:

on 3 Dec 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!