Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can you solve this??

1 回表示 (過去 30 日間)
Benjamin Murgic
Benjamin Murgic 2020 年 10 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, I need help. I have this problem, how to whrite this in code
0,01x^5-1.4x^3+80x+16.7
  2 件のコメント
KSSV
KSSV 2020 年 10 月 20 日
We can solve this. But what have you attempted for your simple home work problem?
Benjamin Murgic
Benjamin Murgic 2020 年 10 月 20 日
This is one of the first tasks, but this is also the first lesson I had.

回答 (2 件)

KSSV
KSSV 2020 年 10 月 20 日
You can read about roots, solve.
I suggest you to read the function roots.

Image Analyst
Image Analyst 2020 年 10 月 20 日
% "how to whrite this in code 0,01x^5-1.4x^3+80x+16.7"
% Commas do both statements in sequence - one after the other.
% The first statement does nothing really
0
% Now the second statement. 01 is the same as 1. Use * to multiply.
1 * x^5 - 1.4 * x ^ 3 + 80 * x + 16.7
  2 件のコメント
Image Analyst
Image Analyst 2020 年 10 月 20 日
Not sure what "solve" means to you. Do you mean plot it? Here is better code:
% Create x
x = linspace(-15, 15, 1000);
% Create y
y = x .^ 5 - 1.4 * x .^ 3 + 80 * x + 16.7;
% Plot y vs. x.
plot(x, y, 'b-', 'LIneWidth', 2);
title('y = x .^ 5 - 1.4 * x .^ 3 + 80 * x + 16.7', 'FontSize', 20);
xlabel('x', 'FontSize', 20);
ylabel('y', 'FontSize', 20);
grid on;
You didn't tag it as homework. If it is, you can't submit it or else your instructor's plagiarism detector may notice it.
Benjamin Murgic
Benjamin Murgic 2020 年 10 月 20 日
Thanks a lot for these examples

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by