Need help very new to Matlab
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hello,
Basically I'm creating this program to find the amount of displacement taking place with this object. The data is not the same size and have more (x1,y1) points than (x2,y2). All of the points are already sorted and have some repetitive values in the x's. I basically need y2 to find its matching value below or above .01 in the y1 column. I then need the x-value to come over with it and have (x1-x2). I've work on this for about 2 weeks now and am still a failure at this please help!! Student =(
x1
0.00022000
0.00022000
0.00022000
0.00022000
0.00023000
0.00023000
0.00024000
0.00024000
0.00024000
0.00025000
y1
0.6926
0.69788
0.70216
0.70528
0.70885
0.71412
0.7192
0.72287
0.72588
0.73059
x2
0.00015
0.00015
0.00016
0.00016
0.00016
0.00017
0.00017
0.00018
0.00018
0.00018
y2
3.7302
3.79006
3.85006
3.9087
3.96475
4.01791
4.06763
4.11372
4.15619
4.19552
%%read data file
a = xlsread('book5', 'A:H')
%%create unique points from data set 1
ext1=a(:,2);
load1=a(:,4);
[ext1_u,I_unique1]=unique(ext1);
load1_u = load1(I_unique1);
%%create unique points from data set 2
ext2=a(:,6);
load2=a(:,8);
I=(~isnan(load2));
ext2=ext2(I);
load2=load2(I);
[ext2_u, I_unique2] = unique(ext2);
load2_u = load2(I_unique2);
1 件のコメント
Sean de Wolski
2012 年 5 月 22 日
Well what doesn't work?
回答 (1 件)
Matt Kindig
2012 年 5 月 22 日
0 投票
What does this part mean "I basically need y2 to find its matching value below or above .01 in the y1 column"? y2 differs from y1 by more than 0.01 for all values of y1. Can you clarify your goal, ideally showing us what your desired output looks like?
1 件のコメント
Cgpat
2012 年 5 月 23 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!