Error using spline : data site should be distinct

7 Ansichten (letzte 30 Tage)
AD
AD am 17 Feb. 2018
Beantwortet: Walter Roberson am 18 Feb. 2018
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

Antworten (1)

Walter Roberson
Walter Roberson am 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.

Kategorien

Mehr zu Splines finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by