Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MATLAB に 3D 曲線がありますが、その曲線の導関数を別のグラフに描画したいですか? たとえば、y = x 2の場合、 xに関する導関数はy = 2 xです。
これどうやってするの ?
「3D」の部分がわかりません。y = x ^ 2が3D曲線であるのはなぜですか?
ただし、y = x ^ 2とその導関数を同じプロットにプロットする場合は、ezplotを使用します。
clear all; close all; syms x y=x^2; h=ezplot(y,[-6,6]); set(h, 'Color', 'r'); hold on; ezplot(diff(y,x),[-6,6]);