Search All of the Math Forum:

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

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

 Messages: [ Previous | Next ]
 ImageAnalyst Posts: 13,022 Registered: 12/26/06
Re: help : how to reverse 2-D lookup table ?
Posted: Jan 30, 2010 8:47 AM

meng:

clc;
close all;
clear all;
workspace; % Display workspace panel.

% Create a 1000 row by 10 column array of
% random integers in the range 0-49.
T = uint8(50*rand(1000, 10));

% Set a column where we'll look for a certain T value.
b = 8;

% Find where T = 42 in this column (column b=8)
aAtTEquals42 = find(T(:,b)==42)

Date Subject Author
1/29/10 meng yan
1/29/10 John D'Errico
1/29/10 meng yan
1/29/10 John D'Errico
1/29/10 meng yan
1/29/10 ImageAnalyst
1/30/10 meng yan
1/30/10 ImageAnalyst
1/31/10 meng yan
1/31/10 ImageAnalyst
10/30/13 Virginia