Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
ImageAnalyst

Posts: 12,932
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);
surfc(X,Y,Z)
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
answers.



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.