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: help : how to reverse 2-D lookup table ?
Replies: 10   Last Post: Oct 30, 2013 5:54 AM

Advanced Search

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

Posts: 13,022
Registered: 12/26/06
Re: help : how to reverse 2-D lookup table ?
Posted: Jan 29, 2010 9:45 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I don't understand this: a(a=a(T,b))
I don't know what you're trying to get.
Are you trying to get a profile or contours or something like that?
For example, let's say that T is a 2D array and for a certain row and
column, T will have a value. Do you then want to find all rows and
column where T = 42 (for example, or some other value)? Something
like this code from the help?

[X,Y,Z] = peaks(30);
colormap hsv
axis([-3 3 -3 3 -10 5])
set(gcf, 'Position', get(0,'Screensize')); % Maximize figure.

Of maybe you can simply use the find() function, like
[rows columns] = find(T == 42)

Giving us a better description of what you want will get you better

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.