ImageAnalyst <firstname.lastname@example.org> wrote in message <email@example.com>... > 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.
Hi,ImageAnalyst,I'm sorry to failed to description it clearly. the question is : I have a matrix T , two vectors a and b,size(T)=101*181, size(a)=1*101,size(b)=181*1,so I can use 2-D lookup table blocks to got the value of T depending on the input a and b, the most important question is I don't know the relation between T with a and b,only their datas .so if I want to got the value of a , the input of 2-D lookup table block are T and b, how to achieve it? is it possible? eg. a=[1 2 3];b=[4 5 6];T=[1 3 5;2 4 6;3 4 5]; a and b as the inputs of lookup table ,output is the value of T, when inputs is 1 and 4,we can got T=1 what I want to do is: T and b as the inputs of lookup table ,output is the value of a,there still don't know their relation. can you got my idears? I'm sorry my writting english is so bad. thanks!