Subplot with different variables in the same equation

조회 수: 2 (최근 30일)
Mariya Ferdousi
Mariya Ferdousi 2018년 5월 21일
댓글: Mariya Ferdousi 2018년 5월 21일
I would like to plot 3x3 subplots, each having a graph of the same equation, but with different values of parameters. Is there a way to reset the variable values after each subplot? Every time I run 2-6 subplot takes the values from the first one. Thanks.

채택된 답변

Image Analyst
Image Analyst 2018년 5월 21일
No need to "reset" them. Simply assign the variables their new values after you get the old equation (old y values) and before you generate the new y values. Then generate the new y values, call subplot(), and then plot() with the new y values. Attach your code if this is not working for you.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by