How to print ?

5 ビュー (過去 30 日間)
imT16
imT16 2021 年 1 月 20 日
コメント済み: Rik 2021 年 1 月 22 日
Plot the following polynomial using linear/linear scale, log/linear scale, linear/log scale and log/log scale.
y=4(x)^2 + 8x +1
  3 件のコメント
Rik
Rik 2021 年 1 月 22 日
Comment posted as flag by @Mihir Trivedi:
I dont want any books question to be here as i was unaware of this i posted one exercise and now i need to remove it. Thank you
Archive link to this question: here.
Rik
Rik 2021 年 1 月 22 日
@Mihir Trivedi We generally discourage deletion of questions that have an answer. If you posted copyrighted material you can contact Mathworks support to have this thread removed.
Often student wanting to cheat, post their questions, get an answer, then claim that they posted copyrighted material, hoping the thread will be removed before their teachers notice and can fail them for academic fraud. I'm not saying this applies to you specifically, but that is my general experience.

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

採用された回答

Masoud Dorvash
Masoud Dorvash 2021 年 1 月 21 日
編集済み: Masoud Dorvash 2021 年 1 月 21 日
Hi there,
If you do not have the data and just want to plot in the mentioned scale, you need to use these commands,
syms x y
y = 4*x^2 + 8*x + 1;
subplot(2, 2, 1), fplot(x,y)
subplot(2, 2, 2), fplot(x,y), set(gca, 'XScale', 'log')
subplot(2, 2, 3), fplot(x,y), set(gca, 'YScale', 'log')
subplot(2, 2, 4), fplot(x,y), set(gca, 'YScale', 'log', 'XScale', 'log')
hope this works for you.
  3 件のコメント
Masoud Dorvash
Masoud Dorvash 2021 年 1 月 21 日
Oh no, I'm sorry, I didn't see anywhere saying that this is a homework.
I'm so sorry if it's against the laws of this community, what should I do now? Should I delete the answere or what?
Walter Roberson
Walter Roberson 2021 年 1 月 21 日
Not exactly against the rules, but against the best practices. Our experience is that students learn better when they are given guidance but not complete code. We prefer to teach concepts but have the students put the concepts together. Students that are only given complete code often do not understand how to put such code together in the future.
In this case, it would for example be fine to point out fplot and subplot and the axes xscale and yscale properties, especially as part of a description that said something like "In MATLAB, semilogx is implemented internally the same as regular plotting, but setting the XScale property to Log"

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by