MATLAB Answers

How to read a variable in set_param function?

3 views (last 30 days)
loay al-azri
loay al-azri on 21 Feb 2019
Answered: Monika Jaskolka on 1 Mar 2021
Iam having aproblem reading a value from a file and put it inside Set_param function. This is my code where here i get the value of A from a txt file but i want to put A in Set_param. when the simulink open it shows A not the value of A in the model.
A = dlmread('C:\xampp\htdocs\RCE\MATLAB\FYP_expirement\SpeedControl\exp_value.txt');

Answers (1)


Community Treasure Hunt

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

Start Hunting!

Translated by