clc, clear
syms x;
f(x) = (x)
g(x) = (x).^2
h(x) = (x).^3
i(x) = (x).^4
j(x) = (x).^5
k(x) = diff(f(x))
l(x) = diff(g(x))
m(x) = diff(h(x))
n(x) = diff(i(x));
o(x) = diff(j(x));
figure(1)
subplot(2,6,1)
plot(f,[-2,2])
subplot(2,6,2)
plot(g(x),x)
I need help with subplotting all of this functions in an interval [-2,2]

1 件のコメント

Rik
Rik 2017 年 9 月 12 日
try doc fplot

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

 採用された回答

KSSV
KSSV 2017 年 9 月 13 日

0 投票

figure(1)
subplot(2,6,1)
fplot(f,[-2,2])
subplot(2,6,2)
fplot(g(x),x)

その他の回答 (0 件)

質問済み:

2017 年 9 月 12 日

回答済み:

2017 年 9 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by