Réponse apportée
how do I control duty cycle of a MOSFET using PI controller
So the output of the PID controller should output a duty cycle between 0 and 1. Then, this duty cycle can be passed into, for...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Change simulink port location of signal after dragging block into "Create Subsystem"
It's the same block; you just have to rotate it and resize it to make it look like a "fresh" block. You can right-click the b...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Fixing parameters when estimation of transfer function
There is a |setpar| function that lets you set whether or not the variables are free. For example, to have only the first 3 p...

presque 9 ans il y a | 0

Réponse apportée
Parallelisation for ga with Simulink Model
This is happening because each worker needs to have the model loaded in memory, as well as all its dependencies added to path (a...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
If there is one Rate Transition Block following another Rate Transition Block, why is the first Block automatically set to "Copy" mode?
*Questions the sense of 2 consecutive Rate Transition blocks ...* If you look at the Rate Transition block documentation it s...

presque 9 ans il y a | 0

Réponse apportée
I'm having trouble modeling with Simscape Multibody
This algebraic loop is happening because your Simscape Multibody interface is being done using Simulink signals. Since you're ap...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Simulink/ROS: Publishing JointTrajectory Messages
I can only guess what's going on... Are you planning on sticking to desktop simulations from MATLAB or will you be generatin...

presque 9 ans il y a | 3

| A accepté

Réponse apportée
Simulink mask using workspace variables
The mask has a separate workspace, so what you need to do is get the values from the base workspace before using them. There ...

presque 9 ans il y a | 5

| A accepté

Réponse apportée
How to propel a multibody vehicle by a DC motor?
You can use the <https://www.mathworks.com/matlabcentral/fileexchange/37636-simscape-multibody-multiphysics-library Simscape Mul...

presque 9 ans il y a | 0

Réponse apportée
Can I override the behaviour of the console output that is printed when I access the member of a class member (without semicolon)?
Absolutely -- you can overload the |disp| method of that class as shown <https://www.mathworks.com/help/matlab/matlab_oop/displa...

presque 9 ans il y a | 0

Réponse apportée
Simulate autonomous robot with distance sensors
Actually, MATLAB does not yet have an official built-in robotics simulator. However, there is a lot out there you can use as a s...

presque 9 ans il y a | 0

Réponse apportée
How could I connect simulink model to the genetic algorithm toolbox ?
It's all in your cost function. For example: function cost = costFunction(params) myValue1 = params(1); myV...

presque 9 ans il y a | 1

Réponse apportée
Designing a DC-DC converter using Simscape
There are a lot of examples in the Simscape (and add-on products) documentation. If you want to do a more idealized system-le...

presque 9 ans il y a | 0

Réponse apportée
Is "fixed-displacement pump" in Simscape still available in R2017 version?
Hi Adam, I just tried finding the blocks and the engine cooling example in R2017a and it works fine for me. Indeed, if I s...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Controlled resistor in simpowersystem?
The block you dragged in is from a different library which doesn't connect directly to Simscape Power Systems Specialized Techno...

presque 9 ans il y a | 0

Réponse apportée
nonlinear plant model in matlab
You can use ordinary differential equation (ODE) solvers in MATLAB by specifying the relationship between |ydot| and |y|. Se...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to generate random stable state space?
Yes, you can! >> A = rss(100) <https://www.mathworks.com/help/control/ref/rss.html> - Sebastian

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Why doesn't the scope in simulink show the full stepresponse?
The default simulation stop time of a Simulink model is 10 seconds (you should see a "10" in the toolbar near the top of the mod...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
I would like to change gain every step / to be a function of time for my TF, is this possible somehow?
Instead of a Gain block, use a Product block... then, pass in the "gain", which is now one of the 2 inputs of the Product block,...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to i find the integral/derivative of a transfer function ?
Are you using Control System Toolbox? Recall that the transfer function for a derivative is |s| and for an integrator is |1/s|. ...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Ho to convert a signal from discrete to continuous in Simulink block diagram?
Even better! In Simulink, you don't need to convert your plant model to a discrete system. If your controller block(s) are di...

presque 9 ans il y a | 1

Réponse apportée
How can I set input value and output value of a StartFcn?
Did you try it? Because it works fine for me. Pretty sure the value of a model's |StartFcn| parameter is just a free-form str...

presque 9 ans il y a | 0

Réponse apportée
how to applySVM classifier on dataset in xls form
You can import the data into MATLAB either graphically using the <https://www.mathworks.com/help/matlab/import_export/select-spr...

presque 9 ans il y a | 0

Réponse apportée
Flow chart in simulink
If you want iterations in your flow chart, as in a FOR-loop, you can create one using the pattern wizard. See below: <https:/...

presque 9 ans il y a | 0

Réponse apportée
How to save custom Simscape blocks?
Assuming your code is correct, all you have to do is change the extension of |varconvection.m| to |varconvection.ssc|. Simsca...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Code to check stabilty with routh method
There are tons of submissions for this on File Exchange, such as this one: <https://www.mathworks.com/matlabcentral/fileexcha...

presque 9 ans il y a | 0

Réponse apportée
OOP: Object gone out of scope!
This is expected. |x| is a local variable to the constructor, so it will go out of scope after instantiating the object. You ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Is there a fault in the equation of the piston mechanism? (Simscape, Piston, Piston Engine)
At a glance, you seem to be correct. I looked at the underlying code in the block and it seems the equations are implemented cor...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Use mldivide in SIMULINK
Since you're using a square A matrix, you should be able to use the Divide block (Simulink > Math Operations). If you set its "M...

presque 9 ans il y a | 3

| A accepté

Réponse apportée
Why does matlab skip my if statement
This is a common issue when working with floating-point numbers, and I would first refer you to this answer: <https://www.mathwo...

presque 9 ans il y a | 0

Charger plus