plot图像问题,救救孩子。

조회 수: 2 (최근 30일)
npgjpcs
npgjpcs 2023년 5월 21일
답변: xvcxcrcg 2023년 5월 21일
想把一个示波器的图像plot出来,但是一个由于示波器有多个图像怎么全部都显示出来
如图这个代码怎么写可以让两列的数据都显示出来,
代码;
subplot(4,1,2);
plot(ScopeData1.time,ScopeData1.signals(2).values(:,1));
这个只能plot出第一列的怎么把第二列的也弄出来显示在一个坐标系上

채택된 답변

xvcxcrcg
xvcxcrcg 2023년 5월 21일
subplot(4,1,2);
plot(ScopeData1.time,ScopeData1.signals(2).values(:,1));
hold on
plot(ScopeData1.time,ScopeData1.signals(2).values(:,2));

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!