Matlab Noob here Simple question

3 ビュー (過去 30 日間)
Bob
Bob 2015 年 1 月 28 日
コメント済み: Image Analyst 2015 年 1 月 29 日
Can someone help me with writing the code for these two questions:
Calculate e^0.4. Assign the answer to p2.
Calculate log10(sin(70)) where the 70 is assumed to be in degrees. Assign the answer to p3. Note: Don’t use sin, find the correct command! Try help sin if you’re not sure!
In the first question is e a variable? Also how do you assign an answer to p#?
Thank you!
  2 件のコメント
Bob
Bob 2015 年 1 月 28 日
I was able to solve #1 but now for number 2 I am getting this error: Exiting fzero: aborting search for an interval containing a sign change because no sign change is detected during search. Function may not have a root.
Image Analyst
Image Analyst 2015 年 1 月 29 日
What? What question were you answering? For the second problem you listed, I don't see any reason why fzero() should be called when you just want to call log10(sind(70)) and assign it to a variable called "p3". Let's see your code.

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2015 年 1 月 28 日
Hint for your homework: look up exp() and sind() in the help.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by