필터 지우기
필터 지우기

What methods can I use to create configuration file for my project

조회 수: 18 (최근 30일)
Sardar
Sardar 2022년 12월 16일
편집: Suvansh Arora 2022년 12월 19일
I have project based on simulink and matlab code which defines constansts and variables for simulink. But problem is that some variables should be defined inside matlab for simulink( matlab convers degress to radians and defines geodedic frame with it parametrs like spin) and for end user its hard to write down its own constants for programm. Which methods I can use to create configuration file that will contain all constatns that end user want to change in my matlab code , so it will then integrate in simulink as new constants ?

답변 (1개)

Suvansh Arora
Suvansh Arora 2022년 12월 19일
편집: Suvansh Arora 2022년 12월 19일
To resolve the issue mentioned, please follow the procedure mentioned below:
  1. Define the configuration through a MATLAB script and use the workspace data in Simulink using "from workspace" block, please follow the documentation mentioned below for reference: Load signal data from workspace into Simulink model - Simulink
  2. You can also use an excel or a text document to enter different constants and values for Simulink model, please follow the below mentioned MATLAB answers articles for reference:
I hope the above information helps you.

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by