Variable x must be of data type double. It is currently of type sym. Check where the variable is assigned a value.
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jarrod
il 10 Ott 2023
Commentato: Dyuman Joshi
il 10 Ott 2023
%W=3t^2+6t
%W=3t(t+2)
%(-(b)+sqrt(b^2-(4*a*c))/2*a)
%(-(b)-sqrt(b^2-(4*a*c))/2*a)
syms x positive
W=3*x.^2+6*x;
t1=solve(W == 3)
t2=solve(W == 9)
t3=solve(W == 45)
4 Commenti
Dyuman Joshi
il 10 Ott 2023
Although Watler has given you a working solution, I suggest you take the free Introductory course - MATLAB Onramp tutorial to learn the essentials of MATLAB.
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!