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

7 ビュー (過去 30 日間)
Syed Adeel
Syed Adeel 2020 年 4 月 22 日
コメント済み: Star Strider 2020 年 4 月 22 日
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 件のコメント
darova
darova 2020 年 4 月 22 日
Can you show something more?
Star Strider
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 ExchangeLogical についてさらに検索

タグ

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by