Error using spline : data site should be distinct
조회 수: 5 (최근 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
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Splines에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!