Answered
I cannot run dsm_demo.mdl
Since the MATLAB Function block (in releases earlier than R2015a) always generates C code, you need to install and configure a s...

10 years ago | 0

| accepted

Answered
LaserScan in TurtleBot examples
The commands certainly look correct. Have you tried changing the maximum scan range to a nondefault value? For example: plo...

10 years ago | 0

Answered
SimMechanics. Import. Solid properties. Simulink
For each rigid part in SolidWorks, SimMechanics Link generates an STL file. You also get an XML file which says how the STL file...

10 years ago | 0

| accepted

Answered
Using the Simulink for analogue circuits
Do you have access to Simscape and SimElectronics? Those are the two add-on products to Simulink that are more closely associate...

10 years ago | 0

Answered
Is there a way to get all the blocks with specific datatype (eg. boolean / ufix1) in Simulink model after compiling
You can't exactly do this for blocks, because some blocks use different data types for different calculations inside of them. Wh...

10 years ago | 1

| accepted

Answered
What code do I need to write to simulate this block diagram?
Do you plan on using MATLAB or Simulink? In MATLAB, you can use the <http://www.mathworks.com/help/control/ref/tf.html tf> fu...

10 years ago | 0

Answered
What is the proper approach (or a good example) for enforcing prismatic joint limits on a joint that is also actuated?
Using the Translational Hard Stop block is the proper approach. However, I'd make sure to check the following things about that:...

10 years ago | 0

| accepted

Answered
I need help on Shallow Water Equations?
How about this paper? http://www.mathworks.com/moler/exm/chapters/water.pdf Or this File Exchange entry? http://www.mat...

10 years ago | 0

Answered
Simulation and Control of a double pendulum by Neural Networks
The documentation page for Neural Network control of a robot arm (basically a pendulum) is here: http://www.mathworks.com/hel...

10 years ago | 0

Answered
How to use inside a Simulink file a user-defined class previously written in matlab?
I found 2 main issues here: First, methods of a class must have the object itself as the first argument. So, to correctly use...

10 years ago | 0

| accepted

Answered
How can I give inputs to a MIMO statespace model generated using the command ss(a,b,c,d)?
You can use the |lsim| function to provide arbitrary inputs to a state-space (or transfer function) system and likewise collect ...

10 years ago | 0

Answered
How can I convert mechanical force on the rod of a double acting cylinder to hydraulic pressure using SimHydraulics blocks?
The neat thing about Simscape/SimHydraulics is that all the connections are reversible. That is, you can apply a pressure on the...

10 years ago | 0

Answered
hello friends, when i done a modelling in simulink error "the "FixedStepDiscrete" solver cannot be used to simulate block diagram,because it contains continuous states" is occuring.... even i tried all the solver types but nothing worked.. help me..
If you have continuous-time blocks like Integrators, Continuous State-Space/Transfer Function, etc., then you cannot use a discr...

10 years ago | 3

| accepted

Answered
Read BlockType of SimscapeBlocks
Looks like the |ClassName| block parameter might return what you want. For example: >> get_param(gcb,'ClassName') an...

10 years ago | 0

| accepted

Answered
Does SimMechanics 2nd Gen compute inverse dynamic ?
Yes, SimMechanics allows you to prescribe motion and automatically computes forces and torques -- both along the axis of motion ...

10 years ago | 1

| accepted

Answered
goto error when using more than one Single Phase Dynamic Load Block
This problem no longer happens in the latest version (R2015a), but I tried on an older version and that was indeed the case. ...

10 years ago | 2

| accepted

Answered
Modeling a collision between two rotating bodies
It's not all that straightforward to make these complex contact forces, but it's doable. There is a basic contact forces library...

10 years ago | 0

| accepted

Answered
Simulink Library Browser doesn´t show any blocks
Maybe your MATLAB install's path or toolbox cache got corrupted. If you try run the following commands in MATLAB and try opening...

10 years ago | 15

| accepted

Answered
why does the estimated state-space model using n4sid not show the same output in Simulink?
Without much knowledge of your system, some of the questions that may be worth looking into are: # Is the input provided to t...

10 years ago | 0

Answered
In SimMechanics, can we have an actuator that has the ability to change its actuation modes online?
You cannot change the actuation mode mid-simulation because SimMechanics generates all the equations when the model updates prio...

10 years ago | 0

| accepted

Answered
HOW TO ESTIMATE A FUELCELL BOOST CONVERTER USING ADAPTIVE CONTROL??
Something like this may be useful to read. Just replace the DC Motor model with a boost converter model. You can optimize parame...

11 years ago | 0

Answered
Are the simulink models created in a 64 bit version of Matlab compatible with a 32 bit version of Matlab and vice versa?
Yes, you should be able to use Simulink models in any bitness or operating system that supports that MATLAB version. The only th...

11 years ago | 0

| accepted

Answered
PID Control Block Tuner Options
Since you're modeling a rectifier, I'm guessing the pulses are problematic and won't give you a direct analytical answer. Have y...

11 years ago | 0

Answered
what's the mean:" the simulink library browser failed to initialize"
Have you tried the steps in this Answer? http://www.mathworks.com/matlabcentral/answers/99143-why-do-i-get-an-error-when-i-ty...

11 years ago | 0

Answered
How does matlab simulink (simpower system)calculates this from machine parameters?
The per unit system is based on the nominal Voltage, Power, and Frequency which is specified in the Parameters tab of that block...

11 years ago | 0

Answered
Hi, i cannot find solar cell block in MATLAB 2014a. I require assistance in finding it in library.
There is a Solar Cell block in the SimElectronics > Sources library. Do you have that product? You can check by typing "ver" in ...

11 years ago | 0

Answered
Problem with the design verifier Simulink
If you go to Simulation > Model Configuration Parameters, then go to the Data Import/Export section, there should be an "Initial...

11 years ago | 0

Answered
Simulink - DC Motor Control (result in not as expected)
Notice the time values in your time axis. In the scope block, click the gear icon (Preferences), go to the History tab and un...

11 years ago | 0

Answered
Creating a mask/dialog of a subsystem and setting sample time for all components within
You can create a mask variable (for example, |Ts| ) that users can enter in the dialog box. Then, inside the masked subsystem...

11 years ago | 0

| accepted

Answered
What does mean the Linearization Delta in the block mechanism configuration of the simmechanics library
From the <http://www.mathworks.com/help/physmod/sm/ref/mechanismconfiguration.html documentation>: Perturbation value for comput...

11 years ago | 2

| accepted

Load more