The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: want to save file using variable name
Replies: 3   Last Post: Sep 27, 2012 9:58 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Moon Datta

Posts: 50
Registered: 8/16/12
want to save file using variable name
Posted: Sep 27, 2012 7:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a programme like

index_1 = find(p==1,1440);
index_2 = find(p==2,1440);
index_3 = find(p==3,1440);
index_4 = find(p==4,1440);
index_5 = find(p==5,1440);

where p is a matrix.
I want to make it in one line. any hint please.....

thanks in advance.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.