??? Error using ==> interp1 at 261 The values of X should be distinct. Error in ==> StallPower_20131029_S809 at 10 c=interp1(rc_table(:,2),rc_table(:,3),rad);
Show older comments
When i'm using iterp1 with rc_table, displaying this message
??? Error using ==> interp1 at 261
The values of X should be distinct.
Error in ==> StallPower_20131029_S809 at 10
c=interp1(rc_table(:,2),rc_table(:,3),rad);
What is the problem and its solution, Please?
rc_table :
1 1 0.345899000000000
2 1.50000000000000 0.712727000000000
3 2 0.661241000000000
4 2.50000000000000 0.609755000000000
5 3 0.560511000000000
6 3.50000000000000 0.511266000000000
7 4 0.459780000000000
8 4.50000000000000 0.408293000000000
9 5 0.356807000000000
10 5.50000000000000 0.308684000000000
1 Comment
Walter Roberson
on 30 Oct 2013
Could you check size(rc_table,1) and length(unique(rc_table(:,2)))
Accepted Answer
More Answers (0)
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!