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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 1

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

Beantwortet
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

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
ss function and matrix combinations
What are you trying to accomplish by performing these concatenations? In your code for “ssto1”, you are performing concatenatio...

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

| akzeptiert