how to plot in simulink
조회 수: 57 (최근 30일)
이전 댓글 표시
i designed a simulink model where i was in need to plot the result vectro obtained , so how can i do that as i didnt get any method to do that
i want to plot my ouput vs input which are both vectors
댓글 수: 1
Manikanta Aditya
2024년 3월 28일
You can plot the output versus input vectors in Simulink using the To Workspace block for saving the vectors and then using MATLAB’s plot function.
You can Save the vectors in Simulink, run the model and plot the vectors in MATLAB
plot(input, output)
xlabel('Input')
ylabel('Output')
title('Output vs Input')
채택된 답변
Pramil
2024년 3월 28일
What Manikanta Aditya suggests works but if you do not want to save your output and just want to plot,
you can use the "scope" block for plotting the “input” and “output” of your Simulink model.
Here is the documentation for the same:
This would resolve your issue.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!