Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
proble in using "solve function
조회 수: 1 (최근 30일)
이전 댓글 표시
i am using solve function to equate two equations but the result are not the one that i want and also have problem with the format of the result . the exp. is
[L D] = solve(L*(D-d)==0.1386,L/(D-d)==3.6,'Real',true)
==============
the result is in fraction form or some times show empty matrix
댓글 수: 1
Walter Roberson
2014년 1월 20일
L = (9/250)*sqrt(385), D = (1/100)*sqrt(385)+d
L = -(9/250)*sqrt(385), D = -(1/100)*sqrt(385)+d
답변 (2개)
Mischa Kim
2014년 1월 20일
편집: Mischa Kim
2014년 1월 20일
Have you assigned a numeric value for d ?
syms L D
d = 1;
[L D] = solve(L*(D-d)==0.1386,L/(D-d)==3.6,'Real',true)
L =
385^(1/2)/100 + 1
1 - 385^(1/2)/100
D =
(9*385^(1/2))/250
-(9*385^(1/2))/250
double(L(1))
ans =
1.196214168703486
댓글 수: 1
Walter Roberson
2014년 1월 20일
double(L), double(D)
댓글 수: 3
Walter Roberson
2014년 1월 22일
S = solve(L*(D-d)-Aw,L/(D-d)-3.6,'Real',true);
S.D
S.L
and if appropriate,
double(S.D)
double(S.L)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!