関数のグラフをplotで書く際に、原点で交わる座標軸を入れる方法、その他
Afficher commentaires plus anciens
具体的には、以下のような図を描く方法を知りたいです。
y=sin(x^2) の グラフを 0 \le x \le 10 の範囲で原点で交わるxy座標軸の入ったグラフを書く。
グラフとx軸に挟まれた領域のうち、正の側に赤、負の側に青の薄い色をつける。
ヘルプを探して見ましたが、一つのグラフの別々の領域を指定して別々の色を着けるやり方がよくわかりません。
該当する具体例がオンラインヘルプのどこにある、という形で示していただくか、
あるいは似たような図を描くコードを示していただけるとありがたいです。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur アニメーション dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!