Answered

View externally-scoped variables in Workspace browser

There is an option 'Function Call Stack' in the toolstrip of the MATLAB editor when in debug mode. Change this drop down option ...

View externally-scoped variables in Workspace browser

There is an option 'Function Call Stack' in the toolstrip of the MATLAB editor when in debug mode. Change this drop down option ...

7 years ago | 0

| accepted

Answered

How can I get the bode diagram between the velocity (input) and the force (output) on the damp in simMechanics?

<http://www.mathworks.com/help/physmod/sm/mech/ug/linearizing-mechanical-models.html> In this <http://www.mathworks.com/help/...

How can I get the bode diagram between the velocity (input) and the force (output) on the damp in simMechanics?

<http://www.mathworks.com/help/physmod/sm/mech/ug/linearizing-mechanical-models.html> In this <http://www.mathworks.com/help/...

7 years ago | 0

| accepted

Answered

How to run a simulation with an input array?

Use this <http://www.mathworks.com/help/simulink/slref/constant.html block> in your model. You can create a for loop in a script...

How to run a simulation with an input array?

Use this <http://www.mathworks.com/help/simulink/slref/constant.html block> in your model. You can create a for loop in a script...

7 years ago | 0

Answered

Error using c2d extraction for block initialization

I am assuming the code you posted lives only in the mask initialization of your block. In that case the variable 'x' and 'y' go ...

Error using c2d extraction for block initialization

I am assuming the code you posted lives only in the mask initialization of your block. In that case the variable 'x' and 'y' go ...

7 years ago | 0

| accepted

Answered

Compile error for Robotics toolbox

You need to have the Robotics System Toolbox to use this example. You can see if you have the toolbox by entering the following ...

Compile error for Robotics toolbox

You need to have the Robotics System Toolbox to use this example. You can see if you have the toolbox by entering the following ...

7 years ago | 0

| accepted

Answered

how to reduce run time of this binary 2D region growing code?

The MATLAB compiler is typically used when you want to deploy programs as standalone applications. If your goal is to compile yo...

how to reduce run time of this binary 2D region growing code?

The MATLAB compiler is typically used when you want to deploy programs as standalone applications. If your goal is to compile yo...

7 years ago | 0

Answered

Optimization of multivariable function using fminunc

Define your function handle like so: f = @(x) x(1:a) * A + x(a+1:end) * B where: X = x(1:a) , Y = x(a+1:end) the...

Optimization of multivariable function using fminunc

Define your function handle like so: f = @(x) x(1:a) * A + x(a+1:end) * B where: X = x(1:a) , Y = x(a+1:end) the...

7 years ago | 0

Answered

%<BaseSampleTime> variable not available in simulink model-tlc file?

I do not know of any TLC function to get the base sample time of the model. There is however a list of <http://www.mathworks.com...

%<BaseSampleTime> variable not available in simulink model-tlc file?

I do not know of any TLC function to get the base sample time of the model. There is however a list of <http://www.mathworks.com...

7 years ago | 0

| accepted

Answered

Modelling and simulation of a mechanical compressor using matlab simulink

The following blocks represent ideal compressors in the Pneumatic Simscape library: <http://www.mathworks.com/help/releases/R...

Modelling and simulation of a mechanical compressor using matlab simulink

The following blocks represent ideal compressors in the Pneumatic Simscape library: <http://www.mathworks.com/help/releases/R...

7 years ago | 0

Answered

How does sample time in Simulink translate into generated code for hardware?

Assuming you are generating code with the ert.tlc file, you must associate the 'rt_OneStep' function in the generated 'ert_main....

How does sample time in Simulink translate into generated code for hardware?

Assuming you are generating code with the ert.tlc file, you must associate the 'rt_OneStep' function in the generated 'ert_main....

7 years ago | 1

Answered

How can I get the output of Abaqus in increment way continuously using Matlab?

Though I am not sure about the command line API for Abaqus, you can certainly run bash scripts and send input files from MATLAB ...

How can I get the output of Abaqus in increment way continuously using Matlab?

Though I am not sure about the command line API for Abaqus, you can certainly run bash scripts and send input files from MATLAB ...

7 years ago | 0

Answered

How to import C #defines into MATLAB/ Simulink

The best way to do this is to use the custom code settings in a Simulink model to add any custom macros you may want to add. For...

How to import C #defines into MATLAB/ Simulink

The best way to do this is to use the custom code settings in a Simulink model to add any custom macros you may want to add. For...

7 years ago | 0

Answered

Is it possible to access CAN messages from .dbc file using message ID in the Vehicle Network Toolbox?

The <http://www.mathworks.com/help/vnt/ug/canmessage.html canMessage> API allows you to do this

Is it possible to access CAN messages from .dbc file using message ID in the Vehicle Network Toolbox?

The <http://www.mathworks.com/help/vnt/ug/canmessage.html canMessage> API allows you to do this

7 years ago | 0

| accepted

Answered

What is the maximum number of signals per scope in the .NET xpc api

It looks like the limitation is the same for both APIs though I haven't tested it out myself

What is the maximum number of signals per scope in the .NET xpc api

It looks like the limitation is the same for both APIs though I haven't tested it out myself

7 years ago | 0

Answered

Error while building Simulink model on xpc target

Verify that a supported compiler is being used and that the blocks in the model can be compiled with the given compiler and comp...

Error while building Simulink model on xpc target

Verify that a supported compiler is being used and that the blocks in the model can be compiled with the given compiler and comp...

7 years ago | 0

Answered

set_param() in Repeating Sequence / Simulink doesn't work

Variables in the workspace are initialized once during model update before the simulation runs. Therefore, a change in value of ...

set_param() in Repeating Sequence / Simulink doesn't work

Variables in the workspace are initialized once during model update before the simulation runs. Therefore, a change in value of ...

7 years ago | 0

| accepted

Answered

I can't connect the Raspberry Pi 2 board with command "raspi('192.168.0.33,'pi','raspberry');"

The Raspberry Pi 2 is supported <http://www.mathworks.com/hardware-support/raspberry-pi-matlab.html> Try the following com...

I can't connect the Raspberry Pi 2 board with command "raspi('192.168.0.33,'pi','raspberry');"

The Raspberry Pi 2 is supported <http://www.mathworks.com/hardware-support/raspberry-pi-matlab.html> Try the following com...

7 years ago | 0

Answered

xPC (Simulink RT) compiler optimization flags

You can find what optimization flags are set for the model you are building by looking at the generated makefile. For instance, ...

xPC (Simulink RT) compiler optimization flags

You can find what optimization flags are set for the model you are building by looking at the generated makefile. For instance, ...

7 years ago | 0

Answered

how to validate identification of a MIMO system with PRBS signal?

Use the 'lsim' command to simulate the output of a system given a set of input signals and a corresponding time vector <http:...

how to validate identification of a MIMO system with PRBS signal?

Use the 'lsim' command to simulate the output of a system given a set of input signals and a corresponding time vector <http:...

7 years ago | 0

Answered

Integration on a circular set in simulink

If you have a signal that is > 0 for all time entering in the inport of the model, as time approaches infinity the signal downst...

Integration on a circular set in simulink

If you have a signal that is > 0 for all time entering in the inport of the model, as time approaches infinity the signal downst...

7 years ago | 0

Answered

Kalman Filter and Session-Based Interface

You can add a listener to a data acquisition object which will execute a callback on a certain event. The callback can then cont...

Kalman Filter and Session-Based Interface

You can add a listener to a data acquisition object which will execute a callback on a certain event. The callback can then cont...

7 years ago | 0

| accepted

Answered

Problems with programmatically adding 'TabName' property value in mask.

Try setting the tab names with the following commands: mask = Simulink.Mask.get('blockpath'); tab = mask.getDialogContro...

Problems with programmatically adding 'TabName' property value in mask.

Try setting the tab names with the following commands: mask = Simulink.Mask.get('blockpath'); tab = mask.getDialogContro...

7 years ago | 0

| accepted

Answered

ss function and matrix combinations

What are you trying to accomplish by performing these concatenations? In your code for “ssto1”, you are performing concatenatio...

ss function and matrix combinations

What are you trying to accomplish by performing these concatenations? In your code for “ssto1”, you are performing concatenatio...

8 years ago | 0

Answered

3D approximation with spline

Have you checked out the curve fitting toolbox, specifically the “fit” function? <http://www.mathworks.com/help/curvefit/fit....

3D approximation with spline

Have you checked out the curve fitting toolbox, specifically the “fit” function? <http://www.mathworks.com/help/curvefit/fit....

8 years ago | 0

| accepted