Answered
DC motor with PID
1. When you say you get very high voltage values, do you mean the output of the controller outputs very high voltages? If this i...

mer än 9 år ago | 0

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 ...

mer än 9 år 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/...

mer än 9 år 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...

mer än 9 år 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 ...

mer än 9 år 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 ...

mer än 9 år 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...

mer än 9 år 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...

mer än 9 år 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...

mer än 9 år 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...

mer än 9 år 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....

mer än 9 år 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 ...

mer än 9 år 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...

mer än 9 år 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

mer än 9 år 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

mer än 9 år 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...

mer än 9 år 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 ...

mer än 9 år 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...

mer än 9 år 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, ...

mer än 9 år 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:...

mer än 9 år 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...

mer än 9 år 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...

mer än 9 år 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...

mer än 9 år 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...

ungefär 10 år 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....

ungefär 10 år ago | 0

| accepted