Education Technical Evangelist at MathWorks, focusing on robotics student competitions. Formerly a Training Content Developer for modeling and simulation.

Professional Interests: Education, Robotics, Simulation, Controls, Algorithms, Physical Modeling, Model-Based Design, Computer Vision, Machine Learning, Software Engineering

Answered

when can I use a atomic subsystem in simulink model? (At what conditions we can use atomic subsystem in a model)

Virtual (or non-atomic) subsystems are simply a visual convenience, but Simulink treats the subsystems as if all the blocks exis...

when can I use a atomic subsystem in simulink model? (At what conditions we can use atomic subsystem in a model)

Virtual (or non-atomic) subsystems are simply a visual convenience, but Simulink treats the subsystems as if all the blocks exis...

2 months ago | 1

| accepted

Answered

Simulink Library Browser doesn´t show any blocks

Maybe your MATLAB install's path or toolbox cache got corrupted. If you try run the following commands in MATLAB and try opening...

Simulink Library Browser doesn´t show any blocks

Maybe your MATLAB install's path or toolbox cache got corrupted. If you try run the following commands in MATLAB and try opening...

3 months ago | 2

| accepted

Answered

How to form a simulink block for MATLAB code ?

There is a MATLAB Function block you can use to insert your code in there: <https://www.mathworks.com/help/simulink/ug/creati...

How to form a simulink block for MATLAB code ?

There is a MATLAB Function block you can use to insert your code in there: <https://www.mathworks.com/help/simulink/ug/creati...

3 months ago | 0

Answered

CAN bus unpack Big Endian Format

Hi Kyriakos, If you look at the <https://www.mathworks.com/help/vnt/ug/canpack.html block documentation>, you will see a diag...

CAN bus unpack Big Endian Format

Hi Kyriakos, If you look at the <https://www.mathworks.com/help/vnt/ug/canpack.html block documentation>, you will see a diag...

3 months ago | 1

| accepted

Answered

How to create time varying inertia with Simscape Multibody?

EDIT: Variable solid blocks have been released in R2017b. _OLD ANSWER BELOW_ That object has fixed moments of inertia, so ...

How to create time varying inertia with Simscape Multibody?

EDIT: Variable solid blocks have been released in R2017b. _OLD ANSWER BELOW_ That object has fixed moments of inertia, so ...

3 months ago | 0

| accepted

Answered

Algebraic loop: PID control DC motor in Simscape

Check out this blog post -- I think it sums up pretty well how to address algebraic loops with continuous dynamics (like that PI...

Algebraic loop: PID control DC motor in Simscape

Check out this blog post -- I think it sums up pretty well how to address algebraic loops with continuous dynamics (like that PI...

3 months ago | 1

| accepted

Answered

How to translate a body in +Y direction?

You can use a Rigid Transform block to re-orient the Z axis before the Prismatic Joint block, so it is in the direction you want...

How to translate a body in +Y direction?

You can use a Rigid Transform block to re-orient the Z axis before the Prismatic Joint block, so it is in the direction you want...

3 months ago | 0

| accepted

Answered

How to switch between plant on simulink

If all your plant models are linear, you could use a Linear Parameter-Varying (LPV) system. <https://www.mathworks.com/help/c...

How to switch between plant on simulink

If all your plant models are linear, you could use a Linear Parameter-Varying (LPV) system. <https://www.mathworks.com/help/c...

3 months ago | 0

Answered

Plotting each iteration of a while loop

The easiest thing would be to use the |hold| command to prevent the plot being overwritten every time you call |plot|. The gener...

Plotting each iteration of a while loop

The easiest thing would be to use the |hold| command to prevent the plot being overwritten every time you call |plot|. The gener...

3 months ago | 0

Answered

How to create ROS message header time stamp?

I got this working with 2 updates. 1. The error message you have is because the ROS time object is being returned as this |mx...

How to create ROS message header time stamp?

I got this working with 2 updates. 1. The error message you have is because the ROS time object is being returned as this |mx...

3 months ago | 0

| accepted

Answered

Mapping and Navigation in Matlab

Have you seen the examples online? Building a map from sensor data, having known poses: <https://www.mathworks.com/help/robot...

Mapping and Navigation in Matlab

Have you seen the examples online? Building a map from sensor data, having known poses: <https://www.mathworks.com/help/robot...

3 months ago | 0

Answered

Simulink parameters for Sensitivity Analysis

For Sensitivity Analysis to pick up a parameter, it needs to be a variable. For example, if you define myParam = 2; and ...

Simulink parameters for Sensitivity Analysis

For Sensitivity Analysis to pick up a parameter, it needs to be a variable. For example, if you define myParam = 2; and ...

4 months ago | 0

| accepted

Answered

Cloud you help me.please (Detect pumpkin)

Have you tried using the Color Thresholder App? <https://www.mathworks.com/help/images/image-segmentation-using-the-color-the...

Cloud you help me.please (Detect pumpkin)

Have you tried using the Color Thresholder App? <https://www.mathworks.com/help/images/image-segmentation-using-the-color-the...

4 months ago | 0

Answered

Why use intermediate terms in Simscape?

There is an efficiency/memory vs. traceability difference. If you defined |Re| explicitly as an intermediate variable, you ne...

Why use intermediate terms in Simscape?

There is an efficiency/memory vs. traceability difference. If you defined |Re| explicitly as an intermediate variable, you ne...

4 months ago | 0

Answered

How to set parameters in Simulink outside of the Mask Initailize

How about the Model preload callback? The images in this blog are old, but things still work this way: <https://blogs.mathwor...

How to set parameters in Simulink outside of the Mask Initailize

How about the Model preload callback? The images in this blog are old, but things still work this way: <https://blogs.mathwor...

4 months ago | 0

Answered

Simulink of PWM-controlled dc motor

You need a Voltage Sensor block (connected in parallel). Then, the output of that block will connect to your PS-Simulink Convert...

Simulink of PWM-controlled dc motor

You need a Voltage Sensor block (connected in parallel). Then, the output of that block will connect to your PS-Simulink Convert...

4 months ago | 0

Answered

Using vision.CascadeObjectDetector on Simulink

The issue here is that the |step| method of |vision.CascadeObjectDetector| can return a variable number of bounding boxes, from ...

Using vision.CascadeObjectDetector on Simulink

The issue here is that the |step| method of |vision.CascadeObjectDetector| can return a variable number of bounding boxes, from ...

4 months ago | 0

| accepted

Answered

Direct duty cycle control in MPPT

Yeah, the problem here is you're measuring Vdc incorrectly. Vdc isn't the measured DC link voltage on the output side... it's...

Direct duty cycle control in MPPT

Yeah, the problem here is you're measuring Vdc incorrectly. Vdc isn't the measured DC link voltage on the output side... it's...

4 months ago | 0

| accepted

Answered

Set Parameter Block from Robotics System Toolbox doesn't change parameters in Gazebo. How should I make it work?

This is unfortunately not a MATLAB/Simulink specific problem. I have tried the same approach from a Linux terminal, where I ...

Set Parameter Block from Robotics System Toolbox doesn't change parameters in Gazebo. How should I make it work?

This is unfortunately not a MATLAB/Simulink specific problem. I have tried the same approach from a Linux terminal, where I ...

4 months ago | 0

Answered

ros subscriber is interrupted by ginput

This is expected, sorry to say. Recall that the MATLAB environment is single-threaded, with the exception of optimized math f...

ros subscriber is interrupted by ginput

This is expected, sorry to say. Recall that the MATLAB environment is single-threaded, with the exception of optimized math f...

4 months ago | 0

Answered

Why my topic only send once?

This is because all the blocks (Blank Message and Constant) are using a "Constant" sample time. This means they will only update...

Why my topic only send once?

This is because all the blocks (Blank Message and Constant) are using a "Constant" sample time. This means they will only update...

4 months ago | 0

Answered

ROS stand alone node

You should be able to use |rosdevice| for this. <https://www.mathworks.com/help/robotics/ref/rosdevice-object.html> You ca...

ROS stand alone node

You should be able to use |rosdevice| for this. <https://www.mathworks.com/help/robotics/ref/rosdevice-object.html> You ca...

4 months ago | 0

Answered

Call External C Function From Stateflow

If you go to the Model Configuration Parameters, there is a "Simulation Target" section where you specify the source files, head...

Call External C Function From Stateflow

If you go to the Model Configuration Parameters, there is a "Simulation Target" section where you specify the source files, head...

4 months ago | 0

Answered

How matlab coder, simulink coder and embedded coder dependent on each other?

MATLAB Coder is needed to use Simulink Coder. Both are then needed to use Embedded Coder. If you want standalone execution fr...

How matlab coder, simulink coder and embedded coder dependent on each other?

MATLAB Coder is needed to use Simulink Coder. Both are then needed to use Embedded Coder. If you want standalone execution fr...

4 months ago | 1

| accepted

Answered

I have problem with derivative of an Input to Simulink-PS Converter

The Derivative block is very sensitive to the time steps your simulation is taking, and is usually not recommended. I'd sugg...

I have problem with derivative of an Input to Simulink-PS Converter

The Derivative block is very sensitive to the time steps your simulation is taking, and is usually not recommended. I'd sugg...

4 months ago | 0

Answered

How can I make the simulink model run autonomously on the card without the need to have it connected to my PC?

You should be able to do this with the <https://www.mathworks.com/hardware-support/raspberry-pi-simulink.html Simulink Support P...

How can I make the simulink model run autonomously on the card without the need to have it connected to my PC?

You should be able to do this with the <https://www.mathworks.com/hardware-support/raspberry-pi-simulink.html Simulink Support P...

4 months ago | 0

Answered

Variablen in Simulink definieren (ohne Matlab)

My answer is in English, I hope it is OK... Have you looked into the model callbacks of that model? This is typically where M...

Variablen in Simulink definieren (ohne Matlab)

My answer is in English, I hope it is OK... Have you looked into the model callbacks of that model? This is typically where M...

4 months ago | 0

Answered

SImulink do not terminate

Yes. You should reduce the amount of logged data in the Data Import/Export section of the model's configuration parameters. Ther...

SImulink do not terminate

Yes. You should reduce the amount of logged data in the Data Import/Export section of the model's configuration parameters. Ther...

4 months ago | 0

| accepted

Answered

Where are the other equations in my simscape block?

As your error message states: Node TemperatureIncrease.B is possibly missing a branch statement for domain variable ...

Where are the other equations in my simscape block?

As your error message states: Node TemperatureIncrease.B is possibly missing a branch statement for domain variable ...

5 months ago | 0

| accepted

Answered

I am trying to start parpool with 4 workers but when I execute parpool(4) it only connects me to one worker. Can you provide help regarding this?

You can check the maximum number of computational threads by typing the following in MATLAB. >> maxNumCompThreads Is the...

I am trying to start parpool with 4 workers but when I execute parpool(4) it only connects me to one worker. Can you provide help regarding this?

You can check the maximum number of computational threads by typing the following in MATLAB. >> maxNumCompThreads Is the...

5 months ago | 0