http://www.mathworks.com/matlabcentral/newsreader/view_thread/328644
MATLAB Central Newsreader  I have a set of data (nxm), how to write a matlab code so that I can select
Feed for thread: I have a set of data (nxm), how to write a matlab code so that I can select
enus
©19942015 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Sun, 28 Apr 2013 14:49:08 +0000
I have a set of data (nxm), how to write a matlab code so that I can select
http://www.mathworks.com/matlabcentral/newsreader/view_thread/328644#903341
J K
The data is 5x5. Consist of diameter and F. When diameter is 3, F is 80, and so on.<br>
d F<br>
3 80<br>
5 100<br>
7 120<br>
9 140<br>
11 160<br>
<br>
This is basically an iteration process. The first value of d and F is chosen by the user. The first value of d that I want to select is 7, and the corresponding F is 120. I want to write a program, so that d is equal to the value of d that I select. <br>
<br>
This is my code. <br>
<br>
load data.dat;<br>
d=data(:,1);<br>
F=data(:,2);<br>
<br>
X=find(d,3)<br>
Y=find(F,3)<br>
<br>
I don't really know how to write the code, so I just give it a try. The X=find(d,3), because 7, and 120 are in the 3rd row. <br>
<br>
But of course the code cannot work. <br>
<br>
I hope you do really understand what I'm trying to say. <br>
<br>
Thank you

Sun, 28 Apr 2013 14:57:26 +0000
Re: I have a set of data (nxm), how to write a matlab code so that
http://www.mathworks.com/matlabcentral/newsreader/view_thread/328644#903342
dpb
On 4/28/2013 9:49 AM, J K wrote:<br>
> The data is 5x5. Consist of diameter and F. When diameter is 3, F is 80,<br>
> and so on.<br>
...<br>
<br>
Quit posting new threads on same topic.<br>
<br>
I provided you the solution earlier.<br>
<br>
