Plot from a result obtained in local functions

조회 수: 2 (최근 30일)
Muhaimin Kahar
Muhaimin Kahar 2022년 1월 19일
편집: Muhaimin Kahar 2022년 1월 23일
Question has been answered. thanks

채택된 답변

DGM
DGM 2022년 1월 19일
Just get the vector returned by each of the local functions when you call them. Then you can plot them.
Pmax_1 = max_press1(W1, E1, R1);
plot(Pmax_1)
... and so on. How you choose to arrange the plots is up to you. Depending on the relationships between these values, you might put them in separate figures, or you might group them using subplot() or tiledlayout().
Just a heads up, the two functions for case 4 don't print the correct "results for case 4" message, although I don't know if you intend to keep the text output once the plots are available.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by