Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
using object names as strings

Subject: using object names as strings

From: Paulo Guimaraes

Date: 16 Oct, 2012 02:56:11

Message: 1 of 2

I have a matrix called "matriz" i would like to use the name of this matrix as a string when print out a file

matrix.txt

Is there any automatic way of doing this? I'm asking because i have tons of files to save.

all the best

Paulo

Subject: using object names as strings

From: Barry Williams

Date: 16 Oct, 2012 09:56:08

Message: 2 of 2

"Paulo Guimaraes" wrote in message <k5iicb$7o1$1@newscl01ah.mathworks.com>...
> I have a matrix called "matriz" i would like to use the name of this matrix as a string when print out a file
>
> matrix.txt
>
> Is there any automatic way of doing this? I'm asking because i have tons of files to save.
>
> all the best
>
> Paulo

Well, you could perhaps use who or whos to load the variables in the workspace into a cell.
Barry

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us