Answered
How to model -Force on piston in MATLAB simulink -Simscape
If you have only Simscape, you can use a <http://www.mathworks.com/help/physmod/simscape/ref/translationalhydromechanicalconvert...

10 years ago | 1

Answered
How can I change the build folder of a model?
You can do this using the Simulink preferences or the |Simulink.fileGenControl| function. Take a look at this blog: http://bl...

10 years ago | 1

Answered
How do I determine the number of items (buses, components, lines, etc.) in a SimPowerSystem model?
You can use the |power_loadflow| function to get a structure of data: LF = power_loadflow('-v2',modelName) The sizes of ...

10 years ago | 0

Answered
How to export data from bode in Linear Analysis Tool
The linearized model should show up in the "Linear Analysis Workspace" section on the left of the Linear Analysis tool. The defa...

10 years ago | 1

| accepted

Answered
How to read first 5 characters of string
I would do that with |regexprep| (REGular EXPression REPlace), which is not the easiest thing to pick up. Definitely look at the...

10 years ago | 1

Answered
Dynamics Simulation Inconsistencies in SimMechanics Model
This makes sense, actually. Have you made any connection between the angular velocity of the motor and the thrust provided? SimM...

10 years ago | 0

Answered
how to find the number of Block outport in a model
You can use the |find_system| function to search. To get all the blocks at your current hierarchy level, for example, you can...

10 years ago | 1

| accepted

Answered
i am using simulink to solve a system of second order ODE of passive vehicle suspension system. my simulink scope directly connected to sinewave block doesnt show a sine curve.
If you look at the scope's time axes, notice that it's going from 9.995 to 10 seconds. By default, the Scopes have a logging ...

10 years ago | 0

| accepted

Answered
Using simullink in High School
An example you can start with is the |sldemo_househeat| model, which models the heating logic for a simple thermal model of a ho...

10 years ago | 1

Answered
Ideal Torque and Rotational Motion Sensors
The setup of Through/Across looks correct. The problem may be with that "Goto" block. By default, Goto blocks have a "tag vis...

10 years ago | 0

| accepted

Answered
Thermal mass with dynamic reference
I think you should use the Simscape language and customize the equations of the Thermal Mass block to get what you want. The bui...

10 years ago | 1

Answered
Why is fluid inertia with ideal flow source in Simscape possible and why are there no pressure peaks?
Looks like the solver isn't seeing the discontinuity in the step signal. As a sanity check, I tried replacing the step with a...

10 years ago | 1

| accepted

Answered
Multiple times of execution of PID controller in a single loop (Simulink)
That PID Controller block is Continuous, so it will execute whenever the model solver decides to take a time step. If you're usi...

10 years ago | 0

Answered
Summation formula of two variables using vectorization
You should be able to do: sum(G(fm).*cos(2*pi*fm*t - pi*fm*T)) ... assuming that |G(x)| is a function whose output is al...

10 years ago | 0

Answered
Step response for a DC motor with a transient load
Depends on how you want to model this system. Assuming you want to stay in MATLAB and are not looking at Simulink, If you wan...

10 years ago | 0

| accepted

Answered
simulink mask callback adding variables to workspace
You can take all that initialization code and move it from a block callback to the "Initialization" tab of the Mask Editor. The ...

10 years ago | 0

| accepted

Answered
How to connect solenoid to a system in Simulink
The Solenoid block is a Simscape based block, so you need interface blocks to connect to Simulink blocks... ... but before we...

10 years ago | 0

| accepted

Answered
simulink mask text cannot access matlab workspace
Masks, by design, have their own separate workspace so there is no conflict between internal variables to a block and anything y...

10 years ago | 1

| accepted

Answered
My simscape model will not run.
This can happen when you have an <http://www.mathworks.com/help/simulink/ug/algebraic-loops.html algebraic loop> in Simulink. Th...

10 years ago | 1

Answered
Simulink model execution doesn't follow the flowgraph.
This makes sense because your block has an integrator before it. Since the integrator, at each time step, will use the last valu...

10 years ago | 0

Answered
how to generate one signal from a vector data in simulink
My understanding if your question is that you want those 10 values to make up one period of a periodic waveform, right? If so...

10 years ago | 2

| accepted

Answered
sample error in simulink if else statement
Conditionally executed subsystems like your "If" block are not guaranteed to execute at every time step. According to your er...

10 years ago | 0

Answered
Error while using function block in simulink
This is an algebraic loop, which means that the output of the block depends directly on the input. In this case, |y| cannot b...

10 years ago | 1

Answered
Joint_states Publisher.
The |receive| function waits up to N (10, 100, etc.) seconds to receive the NEXT incoming message in the stream -- it is not mea...

10 years ago | 0

Answered
Hello everybody,i like know the step to create a new block with the Simscape Language????
Have you looked at this documentation page? http://www.mathworks.com/help/physmod/simscape/lang/creating-custom-components.ht...

10 years ago | 0

| accepted

Answered
How can I make a pack of resistors and capacitors into one unit in Simscape?
There's two ways you can do this. The first way is to connect the resistor and capacitor blocks in whichever way you want and...

10 years ago | 0

| accepted

Answered
Create bus object from existing manually created bus in simulink
There's a function for this! http://www.mathworks.com/help/simulink/slref/simulink.bus.createobject.html - Sebastian

10 years ago | 0

| accepted

Answered
Realise a equivalent frequency dependent impedance in SimPower Systems
If all you have is impedance measurement data, I'd suggest looking into the System Identification Toolbox if you have access to ...

10 years ago | 0

| accepted

Answered
Why does linearizing a model in different simulink versions give a different result?
Does the model, by any chance, use Simscape blocks (or any of its add-on products)? In R2014a, the Simscape blocks' initial c...

10 years ago | 0

Answered
Simulink Plot for damping ratio of second order systems
Many Simulink blocks support multidimensional signals. If you enter an array for the Gain (?) block where your damping ratio ...

10 years ago | 0

Load more