How to use subplot in conjunction with set function on plot

조회 수: 2 (최근 30일)
Jade Sen
Jade Sen 2015년 4월 15일
답변: Dishant Arora 2015년 4월 15일
So recently i stumbled across a matlab program to plot real time values when provided with input.In the program, set() was used to set the properties of plot to different values. The program gives a single output plot with real time plots. But how can I modify it to make it display two graphs(from two input sources) in real time, for comparison and further processing?

답변 (1개)

Dishant Arora
Dishant Arora 2015년 4월 15일
Axes1 = subplot(1 , 2, 1);
h1 =plot(x1 , y1);
Axes2 = subplot(1 , 2 , 2);
h2 = plot(x2 , x2)
Here Axes1 and Axes2 are handles to different axes, and h1 , h2 are handles to the line.

카테고리

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