Thread Subject: Name Matrix name automatically

Subject: Name Matrix name automatically

From: Jintao Zhu

Date: 19 Jun, 2008 22:24:02

Message: 1 of 3

Is there any way to rename automatically Matrices so that
to increase efficiency.
In SAS, I can do that. For example,

For i=1 to 10

a&i=b;

end

Then I can create a series matrices a1, a2...a10. If
Matlab can do that, then I can break the big matrices into
small ones. In such a way, i can solve partly the memory
problem.

Thanks!

Jintao

Subject: Name Matrix name automatically

From: Pedro Villena

Date: 19 Jun, 2008 22:33:02

Message: 2 of 3

Jintao Zhu,

You can do that using pointers in a c-mex function.

Regards,
Pedro

Subject: Name Matrix name automatically

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 19 Jun, 2008 22:46:01

Message: 3 of 3

In article <g3ema2$b3u$1@fred.mathworks.com>,
Jintao Zhu <zhu186@yahoo.com> wrote:
>Is there any way to rename automatically Matrices so that
>to increase efficiency.
>In SAS, I can do that. For example,
>
>For i=1 to 10
>
>a&i=b;
>
>end
>
>Then I can create a series matrices a1, a2...a10. If
>Matlab can do that, then I can break the big matrices into
>small ones. In such a way, i can solve partly the memory
>problem.

You will probably have to paste the following URL together into a
single line:

http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F
--
  "There's no term to the work of a scientist." -- Walter Reisch

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
cmex Pedro Villena 19 Jun, 2008 18:35:07
automation Jintao Zhu 19 Jun, 2008 18:25:05
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com