Error using spline : data site should be distinct
3 views (last 30 days)
Show older comments
t= 0:5e-12:10e-9;
LR_V=zeros(NO,num_nodes_LR,length(t));
for j=1:num_nodes_LR
W = vals(j,1);
ht = vals(j,2);
T = vals(j,3);
d = vals(j,4);
Er = vals(j,5);
TL_EX_16(vals(j,:));
x=loadsig('C:\Research_Data\Jr2\example1\TL_EX_16.tr0');
tp = evalsig(x,'TIME');
V_C1 = evalsig(x,'v_17');
LR_V(1,j,:) = spline(tp,V_C1,t);
j
end
0 Comments
Answers (1)
Walter Roberson
on 18 Feb 2018
Your tp values are not unique.
Note: it is recommended that you move that loadsig out of the loop, since it is going to be loading the same data each time. Also, is TL_EX_16 a function? I can see that it is part of the name of your .tr0 file but other than that I do not understand what the TL_EX_16(vals(j,:)) line is intended to do.
0 Comments
See Also
Categories
Find more on Splines 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!