Answered

How to initialize a variable only once in an embedded matlab function?

You can try the <http://www.mathworks.com/help/matlab/ref/exist.html exist> function. This will check to see if they exist. If...

How to initialize a variable only once in an embedded matlab function?

You can try the <http://www.mathworks.com/help/matlab/ref/exist.html exist> function. This will check to see if they exist. If...

10 years ago | 0

Answered

Can model variants be switched while model is running (simulating)?

The best you can do is have 2 models running at the same time and use a switch to toggle the two. Unfortunately Simulink will h...

Can model variants be switched while model is running (simulating)?

The best you can do is have 2 models running at the same time and use a switch to toggle the two. Unfortunately Simulink will h...

10 years ago | 0

| accepted

Answered

how to plot bode plot(frequency plot) in simulink ?

Why do you need the additive noise to find the bode plot? I would first suggest using the <http://www.mathworks.com/help/slcont...

how to plot bode plot(frequency plot) in simulink ?

Why do you need the additive noise to find the bode plot? I would first suggest using the <http://www.mathworks.com/help/slcont...

10 years ago | 0

Answered

during the simulation following error is occured " the number of defined parameters, 11, does not match the number of parameters on the dialog which is 10"how can i remove this error?

It sounds like you defined 11 parameters in the s-function and only put 10 in the dialog. You need to look at the s-function to...

during the simulation following error is occured " the number of defined parameters, 11, does not match the number of parameters on the dialog which is 10"how can i remove this error?

It sounds like you defined 11 parameters in the s-function and only put 10 in the dialog. You need to look at the s-function to...

10 years ago | 0

| accepted

Answered

How to parse a string in simulink?

If you want to use strings in Simulink, particularly if you want to generate code, I would suggest converting to ASCII character...

How to parse a string in simulink?

If you want to use strings in Simulink, particularly if you want to generate code, I would suggest converting to ASCII character...

10 years ago | 0

Answered

How to I efficiently connect Matlab data to Simulink Blocks?

You want to use the <http://www.mathworks.com/help/control/ref/ltisystem.html LTI System Block>. This allows you to simply ente...

How to I efficiently connect Matlab data to Simulink Blocks?

You want to use the <http://www.mathworks.com/help/control/ref/ltisystem.html LTI System Block>. This allows you to simply ente...

10 years ago | 0

| accepted

Answered

Can I Tune a Controller with a Large Number of Symbolic Gains using Sisotool?

SISOTOOL is a Control System Toolbox function which does not work with symbolic variables. Control design (at least in terms of...

Can I Tune a Controller with a Large Number of Symbolic Gains using Sisotool?

SISOTOOL is a Control System Toolbox function which does not work with symbolic variables. Control design (at least in terms of...

10 years ago | 0

| accepted

Answered

Dataset signal logging from Signal Viewer?

Tried this in 13a and it does not appear to work. You can right-click the signal, go to properties and enable signal logging fo...

Dataset signal logging from Signal Viewer?

Tried this in 13a and it does not appear to work. You can right-click the signal, go to properties and enable signal logging fo...

10 years ago | 0

Answered

Error: "Number of variables exceeds number of equations." Probably a mistake in my code, but where?

Sounds like you understand the basics of the error. Without digging to deep I see 4 variables and maybe 2 or 3 equations (I'm n...

Error: "Number of variables exceeds number of equations." Probably a mistake in my code, but where?

Sounds like you understand the basics of the error. Without digging to deep I see 4 variables and maybe 2 or 3 equations (I'm n...

10 years ago | 0

Solved

Who Has the Most Change?

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

10 years ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

10 years ago

Answered

Get a parameter from a masked subsystem

Are you receiving the variable name or the value. If you receive the number you can execute str2num(); on the result. ...

Get a parameter from a masked subsystem

Are you receiving the variable name or the value. If you receive the number you can execute str2num(); on the result. ...

10 years ago | 0

Answered

Control Design: Linearization at multiple operating points simultaneously

It may be possible, I looked and couldn't figure it out right away, but let me describe a workflow that you may find better long...

Control Design: Linearization at multiple operating points simultaneously

It may be possible, I looked and couldn't figure it out right away, but let me describe a workflow that you may find better long...

10 years ago | 0

Answered

linearizing a power system model

If you have Simulink control design you can use the linearize command to <http://www.mathworks.com/help/slcontrol/ug/linearize-a...

linearizing a power system model

If you have Simulink control design you can use the linearize command to <http://www.mathworks.com/help/slcontrol/ug/linearize-a...

10 years ago | 0

Answered

Can I use SimMechanics to model cell mechanics?

SimMechanics may be able to help with some of this, but it sounds like general Simscape (required for SimMechanics) will be a gr...

Can I use SimMechanics to model cell mechanics?

SimMechanics may be able to help with some of this, but it sounds like general Simscape (required for SimMechanics) will be a gr...

10 years ago | 0

| accepted

Answered

Simulink multiplication problem required.

Perhaps I don't understand the question, but this sounds relatively trivial. Check out the <https://www.mathworks.com/company/e...

Simulink multiplication problem required.

Perhaps I don't understand the question, but this sounds relatively trivial. Check out the <https://www.mathworks.com/company/e...

10 years ago | 0

Answered

Kinect adaptor for Matlab 2013a

On the main MATLAB window on the toolstrip there is an add-ons button on the very right. Click that and see if you find it ther...

Kinect adaptor for Matlab 2013a

On the main MATLAB window on the toolstrip there is an add-ons button on the very right. Click that and see if you find it ther...

10 years ago | 0

Answered

Robot Kicker (Warning: Imaginary parts of complex X and/or Y arguments ignored)

You can try <http://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html debugging your program>

Robot Kicker (Warning: Imaginary parts of complex X and/or Y arguments ignored)

You can try <http://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html debugging your program>

10 years ago | 0

Answered

I wanna trigger a subsystem when it sees rising edge for the first time and disable the subsystem permanently when it sees the falling edge for the first time. How can we achieve this using Enable & triggered subsystems block?

This actually isn't to tough to implement with an extra enabled subsystem. Long term, if you have a lot of logic controlling th...

I wanna trigger a subsystem when it sees rising edge for the first time and disable the subsystem permanently when it sees the falling edge for the first time. How can we achieve this using Enable & triggered subsystems block?

This actually isn't to tough to implement with an extra enabled subsystem. Long term, if you have a lot of logic controlling th...

10 years ago | 0

Answered

how can i change the matrix block in Simulink?

You can build the system as you would any other ode. You can use a <http://www.mathworks.com/help/simulink/ug/about-lookup-tabl...

how can i change the matrix block in Simulink?

You can build the system as you would any other ode. You can use a <http://www.mathworks.com/help/simulink/ug/about-lookup-tabl...

10 years ago | 0

Solved

Too mean-spirited

Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

10 years ago

Solved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

10 years ago

Answered

Load File into a Block

If you select the block then type get_param(gcb,'DialogParameters') into MATLAB it will tell you the options you can ch...

Load File into a Block

If you select the block then type get_param(gcb,'DialogParameters') into MATLAB it will tell you the options you can ch...

10 years ago | 0

| accepted

Answered

Eqivalent rigid body rotation from translation and rotation

I'm not sure how you convert a translation into a rotation, but there are a <http://www.mathworks.com/help/aerotbx/axes-transfor...

Eqivalent rigid body rotation from translation and rotation

I'm not sure how you convert a translation into a rotation, but there are a <http://www.mathworks.com/help/aerotbx/axes-transfor...

10 years ago | 0

Answered

Gas Turbine Temperature Calculation

The Aerospace Toolbox has an example of <http://www.mathworks.com/help/aerotbx/examples/determining-heat-transfer-and-mass-flow...

Gas Turbine Temperature Calculation

The Aerospace Toolbox has an example of <http://www.mathworks.com/help/aerotbx/examples/determining-heat-transfer-and-mass-flow...

10 years ago | 0

Answered

How can i get eigen values from simulink model

You can use the <http://blogs.mathworks.com/seth/2011/12/14/welcome-to-the-linear-analysis-tool/ linear analysis tool> to first ...

How can i get eigen values from simulink model

You can use the <http://blogs.mathworks.com/seth/2011/12/14/welcome-to-the-linear-analysis-tool/ linear analysis tool> to first ...

10 years ago | 0

Answered

help for using simulink and usrp

You are calling imread extrinsically and it will return a variable of type mxArray back to the MATLAB function. This cannot be ...

help for using simulink and usrp

You are calling imread extrinsically and it will return a variable of type mxArray back to the MATLAB function. This cannot be ...

10 years ago | 0

| accepted

Answered

GUI with the Real-Time Target

What is the real-time target? Real-time windows target, xPC or something else? Are you trying to use get/setappdata in the ...

GUI with the Real-Time Target

What is the real-time target? Real-time windows target, xPC or something else? Are you trying to use get/setappdata in the ...

10 years ago | 0

Answered

How can I dynamically change a value of resistance during SimPowerSystems simulation?

You want to use the <http://www.mathworks.com/help/physmod/simscape/ref/variableresistor.html variable resistor> from the base S...

How can I dynamically change a value of resistance during SimPowerSystems simulation?

You want to use the <http://www.mathworks.com/help/physmod/simscape/ref/variableresistor.html variable resistor> from the base S...

10 years ago | 0

Answered

Speed control of a Pneumatic /Air turbine Motor

There is a <http://www.mathworks.com/help/physmod/simscape/examples/pneumatic-motor.html simscape exmaple> that may get you star...

Speed control of a Pneumatic /Air turbine Motor

There is a <http://www.mathworks.com/help/physmod/simscape/examples/pneumatic-motor.html simscape exmaple> that may get you star...

10 years ago | 1