Error in symengine deal
Mostra commenti meno recenti
Hello newbie here. Here is the code.
syms x y
r = sqrt(x^2 + y^2);
ht = matlabFunction(r,r^2);
ht(2,2)
Here is the error
Error in symengine>@(x,y)deal(sqrt(x.^2+y.^2),x.^2+y.^2)
Error in Untitled3 (line 4)
ht(2,2)
What am i missing here?
Risposte (1)
madhan ravi
il 10 Giu 2020
Modificato: madhan ravi
il 10 Giu 2020
syms x y
r = sqrt(x^2 + y^2);
ht = matlabFunction([r, r^2]);
ht(2,2)
2 Commenti
Melih Aksoy
il 10 Giu 2020
madhan ravi
il 10 Giu 2020
Modificato: madhan ravi
il 10 Giu 2020
syms x y
r = sqrt(x^2 + y^2);
ht = matlabFunction([r, r^2]);
ht(2,2) % you don't need to call it with two output arguments
ht = matlabFunction(r, r^2);
[O1, O2] = ht(2,2) % you have to call it with two output arguments
Categorie
Scopri di più su Operations on Strings in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!