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;

回答(0 个)

类别

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

标签

产品


版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by