Error using symengine DOUBLE cannot convert the input expression into a double array.

2 views (last 30 days)
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 Comments
Star Strider
Star Strider on 22 Apr 2020
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).

Sign in to comment.

Answers (0)

Tags

Products


Release

R2016a

Community Treasure Hunt

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

Start Hunting!