Error using spline : data site should be distinct

3 vues (au cours des 30 derniers jours)
AD
AD le 17 Fév 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

Réponses (1)

Walter Roberson
Walter Roberson le 18 Fév 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.

Catégories

En savoir plus sur Splines dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by