
Error using symengine DOUBLE cannot convert the input expression into a double array.
2 次查看(过去 30 天)
显示 更早的评论
I call function in my main script as
[vn]=noise_example_plot(tfv);
Now without using Vn value it starts giving me error. If i comment out this function call from my script then all runs ok. But as i call it , it gives following error
Error using symengine
DOUBLE cannot convert the input expression into a double array.
Error in sym/double (line 613)
Xstr = mupadmex('symobj::double', S.s, 0);
Error in Model_AnalogSection_ASD_ (line 137)
da3td = double(y2t);
zci = @(v) find(v(:).*circshift(v(:), [1 0]) <= 0); % Returns Approximate Zero-Crossing Indices Of Argument Vector
da3td = double(y2t);%Line 17
idx = zci(da3td);
if da3td(1) * da3td(end) < 0
idx = idx(2:end);
end
for k = 1:numel(idx)
t_exact(k) = interp1(da3td(idx(k))+[-1 +1]*1E-5, time(idx(k))*1E9+[-1 +1], 0);
end
hold on;
2 个评论
Star Strider
2020-4-22
The error that line throws is likely due to a symbolic variable being in ‘y2d’. Without seeing ‘y2d’ it is not possible to offer a solution (if one exists).
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!