MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
Custom object class array initilization within Simulink Matlab Function Block
Michael - 2021-09-30

The summary of my question is I need know how to preallocate an array of custom objects in a way that is compatible with Simulink when using the Matla...

Amplitude of FFT is not correct
Vollmers - 2021-09-29

Hey there,   i want to calculate the power output of a 3 phase inverter. Therefore i have to do a FFT on my voltage Signals, to get the amplitude of ...

SimEvents - Setting Entity Attributes based on other entities
Marc_elpel - 2021-09-29

My app needs to assign an entity attribute in Entity1 based on an attribute value in Entity 2.   I can use a function GetAttribute to get a specific ...

Reverting Referenced Subsystems back to normal Subsystems
hament_singh - 2021-09-28

Hi, I use  MATLAB/Simulink R2019b and its new feature: Subsystems Reference.   During develpoment I use referenced subsystems since they are used in...

Problem in creating Accelerator MEX file
sanju_mehra - 2021-09-28

am getting the error message as 'Problem creating Accelerator MEX file for model 'PVarray_Grid_IncCondReg_det' during the simulation of 100-kW Grid-Co...

How to fix error in port widths or dimentions on the reshape block input?
Semenov - 2021-09-28

I need to make DCT image compression in Simulink. Image size by default has 3 dimensions, so I used reshape tool to remove the third dimension. Color ...

Why do graphics disappear from my HTML Doc Block when
equations_MS - 2021-09-28

Why do graphics disappear from my HTML Doc Block when I close and reopen the model in Simulink 6.5 (R2006b)? In my Simulink model, I add a Doc Block w...

getting data from workspace to Simulink
Eshkabilov - 2021-09-23

Hello guys,   I have a simulink file that is basically giving as output the control signal of many switches "1" and "0", I took the outputs of the cl...

custom ROS service bus assignment
Goldfarb - 2021-09-23

I am trying to call a ROS service using a custom service message in simulink. I have successfuly followed the instruction here to  load the custom me...

measure the ROS loop time in simulink
Goldfarb - 2021-09-23

I am trying to figure out my control loop time in simulink for controlling my simulation using MATLAB 2021a.\   I am using the loop control rate bloc...

Get a Free Consultation or a Sample Assignment Review!