필터 지우기
필터 지우기

How can I import data to simulink from the workspace

조회 수: 5 (최근 30일)
HF
HF 2020년 10월 13일
답변: Sudhakar Shinde 2020년 10월 13일
Hi folks,
I am new to Simulink and was trying to build my first model.
First, I want to import data from the workspace, which is a 10000 X 1 matrix. The data is the velocity of the vehicle every second. After some computions I want to scope the results to corresponding time.
How can I import data from the workspace and then do the calculations with the corresponding time?

채택된 답변

Sudhakar Shinde
Sudhakar Shinde 2020년 10월 13일
The data available in base workspace can access your simulink model during simulation.
If you would like to provide timeseries data as a input to your simulink model you can use:
  1. Signal builder to import data from file/workspace
  2. 'FromWorkspace' block will take data from workspace and use in simulink model
more detail about FromWorkspace:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by