MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
How can I call (a lot of) user-defined functions in Simulink?
Emin_ucer - 2021-10-21

Hi all,   I have 416 seperate M-file functions located in a local folder under the current folder, e.g. Functions\fnc_1.m Functions\fnc_2.m .... Func...

Using subsystem compiled sample time parameter in executing model
tineesha - 2021-10-21

Hello, I am wondering if there is any way to automatically get the CompiledSampleTime parameter for a discrete fixed-step subsystem at compilation tim...

How to unstructure the structure data?
riyanath54 - 2021-10-21

I want to find the mean of all rows in the data set .   But the data in the workspace is in the following formate.   let A be data set.   A=...

How to solve an equation system using a interp1-variable
soniya_shah - 2021-10-21

Hello everyone,   I'm trying to solve equations in a Matlab function that is part of a Simulink model.   One of those two equations is an interpolat...

How can the handle to the currently visible Stateflow.Box object be obtained?
assignmenthelppro - 2021-10-21

It is possible to obtain the handle to the currently visible Stateflow.Chart object by using the following command:   >> s = sfroot; >> c = s.find('-...

How do I find out what type of block a Simulink block is?
sneha_mittal - 2021-10-20

For an assignment, the lecturer provided a sim. I know what some of the blocks are; how can I find out what the other blocks are? In other words, what...

How to set the nearest position of the block from the Simulink from Matlab script?
rajansingh - 2021-10-20

Hi!   I am working on automated Simulink models transformations (creating models from Matlab Scipt) and I need to:   (a) add a block to simulink fro...

Consecutive call of parsim constantly increases memory usage (Ubuntu)
shyan_andras - 2021-10-20

Hi,   I am trying to perform a parameter sweep on my simulink model using parsim. However, after parsim has been called for several times (after ~24h...

Number of elements mismatch.
ajay_shen - 2021-10-20

Hi everyone, I have a dimension issue: I have a Simulink Matlab Function block that has a [3x1] vector of values called pd as its input. This vector s...

How do I debug mask initialization code in Simulink?
sandya_res - 2021-10-20

My  Simulink model contains a mask with the following initialization code:     plot test_var=1 When this code executes after changing a dialog para...

Get a Free Consultation or a Sample Assignment Review!