필터 지우기
필터 지우기

Variable x must be of data type double. It is currently of type sym. Check where the variable is assigned a value.

조회 수: 5 (최근 30일)
%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)
t1 = 
t2=solve(W == 9)
t2 = 
1
t3=solve(W == 45)
t3 = 
3
  댓글 수: 4
Jarrod
Jarrod 2023년 10월 10일
No but the grader it needs to be submitted to gives this error everything is right i just need some leway to convert it
Dyuman Joshi
Dyuman Joshi 2023년 10월 10일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2023년 10월 10일
x = double(t1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by