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: how to get all selected values in one variable
Replies: 2   Last Post: Jan 3, 2013 6:36 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
sathish kumar

Posts: 17
Registered: 7/24/12
how to get all selected values in one variable
Posted: Jan 2, 2013 11:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

good morning to all
here i am getting only last value i.e selected but not the previously selected values
please tell me how to buffer previous selected values
her is my code
for i=1:length(set)
if (final >= t(i)&& edge >= h(i))
selected = i;
g = [selected]
in this selected values are 4,5
in the command window it is displaying
but i want to get g= 4 5
how to get prevoius value with newly selected value like g= 4 5
please tell me

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.