how to plot input and output separately in single scope

조회 수: 2 (최근 30일)
suneetha j
suneetha j 2017년 3월 1일
답변: Mann Baidi 2024년 2월 19일
how to plot input and output separately in single scope

답변 (1개)

Mann Baidi
Mann Baidi 2024년 2월 19일
Hi,
I understand that you would like to plot the innput and output data separately inside a single scope. You can refer to the following example.
% Create some sample data for input and output
numSamples = 1000;
inputData = ones(numSamples,1);
outputData = inputData + 2.5; % Just an example output
% Create a timescope object
scope = timescope('SampleRate', 1000, 'TimeSpan', 1);
scope(inputData,outputData)
release(scope)
scope.LayoutDimensions = [2,1];
For more information on "timescope", you can refer to the following link.
Hope this will help in resolving the query!

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by