Plotting the left and right side of a tricky equation?

조회 수: 1 (최근 30일)
Harvey Rael
Harvey Rael 2018년 7월 19일
댓글: Harvey Rael 2018년 7월 19일
Hi, I am trying to find the intersection betweeen two sides of an equation that include some tricky trigonometric terms by plotting them. My code is as follows:
syms k3
eqn = -0.1925 == -k3*cot(k3*9.415/2)
fplot([lhs(eqn) rhs(eqn)] , [0.05 0.55])
However, the error message I get is "Warning: Failed to initialize symbolic preferences. Error using mupadmex Internal error with symbolic engine. Quit and restart MATLAB."
Having checked on Wolfram Alpha about an approximation of the plots these should look like, I don't understand what the difficulty is. I've obviously missed something mathmatical?
  댓글 수: 3
Harvey Rael
Harvey Rael 2018년 7월 19일
Hi David, is there a problem with the 2018 version I am using then, because it definitely hasn't worked on my laptop a few times.
David Goodmanson
David Goodmanson 2018년 7월 19일
Yes, I should have said it works in 2017b update 7. Syms and mupad were locking up after certain updates to Windows 10. As Stephan pointed out in his Answer, updates to 2018a [also 2017b] fixed it, and hopefully that will be your experience.

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

채택된 답변

Stephan
Stephan 2018년 7월 19일
Hi,
this works also on R2018a:
Try the following:
ver
and find out if you have the actual update - it should be:
MATLAB Version: 9.4.0.902940 (R2018a) Update 4
If not so, update your Matlab by:
Home Tab / Add Ons (little arrow) / Check for Updates / Products
Then try again.
Best regards
Stephan

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D Function Plots에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by