Community Profile

photo

Sebastian Castro


The MathWorks Inc

793 total contributions since 2012

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

Sebastian Castro's Badges

  • First Answer
  • Knowledgeable Level 4
  • Revival Level 3
  • Guiding Light
  • 12 Month Streak
  • Thankful Level 1

View details...

See 4 Cody Badges

Contributions in
View by

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...

14 hours 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...

14 hours ago | 0

Answered
Using vision.Cas​cadeObject​Detector on Simulink
The issue here is that the |step| method of |vision.CascadeObjectDetector| can return a variable number of bounding boxes, from ...

3 days 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...

3 days 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 ...

3 days 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...

3 days 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...

3 days 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...

3 days 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...

8 days ago | 0

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...

11 days ago | 1

| accepted

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...

11 days ago | 0

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...

11 days 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...

11 days 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...

11 days 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...

11 days 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 ...

23 days 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...

23 days ago | 0

Answered
How can we simulate a simscape model at restricted mode?
"Restricted Mode" means that you can simulate blocks from Simscape add-on tools (like Simscape Electronics, Simscape Multibody, ...

23 days ago | 0

Answered
How to use Lucas-Kanade and Horn-Schnuck optical flow functions in 2017a
There actually are examples! Check out the links under "Topics > MATLAB Workflow" at this page: <https://www.mathworks.com/he...

23 days ago | 0

Answered
What Auto Code Generation Products are required for SIMULINK
You will need MATLAB Coder, Simulink Coder, and Embedded Coder. Really, you just need Embedded Coder but the other 2 are pre-...

25 days ago | 1

Answered
What do "D1" and "inf" mean in the attached fig?
These are labels given to the sample times in the model, when you enable sample time display. * D1 refers to the first (fast...

25 days ago | 0

Answered
how to give the values for step block in simulink through command window.
While |set_param| is certainly an option, I'd highly recommend that you create a MATLAB variable, e.g. |finalValue| in the works...

25 days ago | 1

Answered
How can I model Double Acting, Double Rod hydraulic cylinder?
Yes. Simscape Fluids (formerly SimHydraulics) has a Double-Acting Hydraulic Cylinder block: <https://www.mathworks.com/help/p...

25 days ago | 0

Answered
why the current divider doesn't work on simulink?
Your current sensor needs to be in *series* with the resistor. If you place it in parallel, as in your screenshot, you're essent...

1 month ago | 0

| accepted

Answered
System Identification toolboxとSimulinkについて
Apologies that my answer is in English. I hope this is OK. If you go into the Simulink Library Browser, go to the System Iden...

1 month ago | 4

| accepted

Answered
Simulink ignores Query Instrument sample time
You're right that Simulink simulations run as fast as possible by default. If you want to slow this down so your instrument ...

1 month ago | 1

| accepted

Answered
How do you change install directory for supportpackageinstaller
There is a MATLAB preference for the add-on install folder. See this screenshot (R2017a). <</matlabcentral/answers/uploaded_f...

1 month ago | 1

Answered
Plot loop n variables
This is happening because the syntax |A{1}| doesn't mean you're accessing a variable named |A1|. It's accessing the first elemen...

1 month ago | 2

| accepted

Answered
what is the difference between .mdl and .slx files and full form of mdl and slx?
.mdl is the legacy file format. Simulink models switched to the newer .slx format in 2012. Whereas .mdl files are single text...

1 month ago | 0

| accepted

Answered
How to split divide an array on specific sections?
You can do this with <https://www.mathworks.com/help/matlab/matlab_prog/find-array-elements-that-meet-a-condition.html logical i...

1 month ago | 0

| accepted

Load more