Error using spline : data site should be distinct

3 次查看(过去 30 天)
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

回答(1 个)

Walter Roberson
Walter Roberson 2018-2-18
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.

类别

Help CenterFile Exchange 中查找有关 Splines 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by