
Error using symengine DOUBLE cannot convert the input expression into a double array.
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Star Strider
le 22 Avr 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).
Réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!