Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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/...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
%<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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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....

plus de 10 ans il y a | 1

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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, ...

plus de 10 ans il y a | 0

Réponse apportée
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:...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

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

environ 11 ans il y a | 0

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

environ 11 ans il y a | 0

| A accepté