rekhad
Electrical
- Oct 1, 2005
- 1
I am new to MatLab.Please help..
What will the following code generate?
assuming we have data points(0.8,0.5,0.7,0.5,0.3..) between sr(1) to sr(50)
sr=[1 50];
[Y1 I1]=min(abs(data(sr(1):sr(2),
-0.5),[],1);
Will it first take the absolute difference between data value and 0.5 and return those indexes of I1 for which this difference is minimum.Say I1(4),I1(9)...I1(45) etc.
What will the following code generate?
assuming we have data points(0.8,0.5,0.7,0.5,0.3..) between sr(1) to sr(50)
sr=[1 50];
[Y1 I1]=min(abs(data(sr(1):sr(2),
Will it first take the absolute difference between data value and 0.5 and return those indexes of I1 for which this difference is minimum.Say I1(4),I1(9)...I1(45) etc.