Réponse apportée
How do I switch off and on the SimMechanics 2G Mechanics Explorer from command line?
You want to type the following commands: set_param('model_name','SimMechanicsOpenEditorOnUpdate','off'); set_param('mo...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to simulate out of phase of synchronous generator connected to grid
Do you have access to <http://www.mathworks.com/products/simpower/ SimPowerSystems>? There's blocks to handle all these componen...

presque 11 ans il y a | 1

Réponse apportée
How to access time step in simulink model?
I wouldn't really recommend using MATLAB Function blocks to approximate derivatives, given that Simulink blocks have much better...

presque 11 ans il y a | 0

Réponse apportée
Movement calculation of Solid in SimMechanics.
If you're using SimMechanics (given your tags), you could just get those quantities directly using a <http://www.mathworks.com/h...

presque 11 ans il y a | 0

Réponse apportée
problem in simulation of active suspension system with actuator dynamics.
This error message happens when you put an infinite value into an Integrator block. You see how the error message points to t...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
Implementing Model Reference, Data Dictionaries, and Buses
I would recommend placing all the bus objects in a separate data dictionary (say, |BusData.sldd|), and then referencing that dic...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to build bode plot in power_PSS example case?
Looks like that Bode plot was saved as a MATLAB figure file. You can right-click the green block that says "Show Bode plot of...

presque 11 ans il y a | 0

Réponse apportée
LQR issues and converting minreal gains to full-state feedback
For your first question, the full system is not controllable so LQR isn't expected to work. For the system to be controllable, t...

presque 11 ans il y a | 1

Réponse apportée
What is the function behind renaming Simscape Blocks in the Simscape Results Explorer?
The rules that come into play here are not that bad, and all due to MATLAB's restrictions on variable names # Non-alphabetic ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to create a square matrix with consecutive numbers on each row?
Yeah, for sure. I'm sure there are more efficient ways to do this, but this one will show you a few examples of the "repmat"...

presque 11 ans il y a | 0

Réponse apportée
Writing MATLAB function within a Simulink model - Importing external data & determining when a file was last modified
Are you planning on generating standalone code with the model, using Simulink/Embedded Coder? If you're planning on using th...

presque 11 ans il y a | 0

Réponse apportée
Transform Matrix in Transform Sensor Block. SimMechanics
I'd recommend extracting the rotation angle as a quaternion instead of the transform matrix. With the extra information in the q...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Solving state space equation using matlab function block in simulink
If you already know the A, B, C, D matrices, why not use a <http://www.mathworks.com/help/simulink/slref/statespace.html State-S...

presque 11 ans il y a | 0

Réponse apportée
Variable capacitor in Simulink
If you type "ver" in your Command Window, do you see SimElectronics in the product list? If not, and you still have Simscape,...

presque 11 ans il y a | 0

Réponse apportée
How to find out gain K in root locus for stable system through MATLAB program ?
It's easier to get the Gain Margin of the system, which is the first output of the margin function: >> Gm = margin(sys) ...

presque 11 ans il y a | 5

| A accepté

Réponse apportée
A serious problem when calculating eigenvectors of a matrix with the function eig
The results are actually the same, but (not knowing anything about Maple and Mathematica) the formatting is different. It looks ...

presque 11 ans il y a | 2

Réponse apportée
How to create this transfer function Block?
Ah, good old ramp tracking filters... If you have the Control System Toolbox, you can use an LTI System block and enter the f...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
changing a parameter inside a continuous transfer function during simulation
Yes, it is possible. You can go right into the block and change the parameters mid-simulation. When you hit "OK" in the block...

presque 11 ans il y a | 0

Réponse apportée
Frequency and amplitude of a spring damper system in simulink
The amplitude is the easier of the two to get. If you have the displacement, you can just measure the minimum and the maximum va...

presque 11 ans il y a | 1

Réponse apportée
design of state machine in simulink and generation of hdl code for it
I'd start by looking at this location in the HDL Coder documentation: http://www.mathworks.com/help/hdlcoder/stateflow.html ...

presque 11 ans il y a | 0

Réponse apportée
Error while running simulink
I think you might need Mass blocks, because if you have a force acting on a node with no mass to accelerate, then you get the er...

presque 11 ans il y a | 1

Réponse apportée
Extract data from .PNG file
I'd recommend using the <http://www.mathworks.com/matlabcentral/fileexchange/36618-data-theif Data Theif> (yes, they misspelled ...

presque 11 ans il y a | 2

Réponse apportée
In simscape lead acid battery model i want to make the initial state of charge zero what can i do for that? how I allow to write in matlab editor? i found SOC is given 0.8 but i require to make it 0.
I guess you're referring to these lines in the Simscape language components, right? outputs SOC = {0.8, '1'}; % ...

presque 11 ans il y a | 0

Réponse apportée
How to make a SimHydraulic model for measuring pressure difference across a pipe section?
This is a start. The flow and pressure sensors are correctly connected in series and parallel, respectively. However, the curren...

presque 11 ans il y a | 0

Réponse apportée
How to add gravitational acceleration acting on a mass that is connected to a cylinder in Simscape?
Your force source approach is the right way to model a weight. Two things I would check: # You should also attach a "Mass" bl...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to plott multiple graphs with two Y-axes?
There is a "plotyy" function which lets you have two separate y-axes on the left and right sides: http://www.mathworks.com/he...

presque 11 ans il y a | 1

Réponse apportée
how to represent this state space model in matlab using A,B,C,D matrix?
As soon as you introduce nonlinearities like that square root and the "sgn" function, you cannot express a system using state-sp...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
I am having only five blocks in my simulink model but the sorted execution order is showing upto 0:10
The Ramp block is a virtual subsystem with other blocks underneath, which should have indices 0:3 through 0:9. If you right-c...

presque 11 ans il y a | 1

Réponse apportée
Please provide the matlab code for optimal power flow using Gradient Method
More of an FYI, but SimPowerSystems implements this same type of power flow analysis: http://www.mathworks.com/help/physmod/s...

presque 11 ans il y a | 0

Réponse apportée
I am trying to become quant.
Yep! Video: http://www.mathworks.com/videos/matlab-for-financial-applications-91012.html Course page: http://www.mathworks...

presque 11 ans il y a | 0

| A accepté

Charger plus