how to run the matlab code step-by-step?
Use the debugger. See <http://www.mathworks.com/help/releases/R2011a/techdoc/matlab_env/f2-4931.html Editing and Debugging MATLA...

10 years ago | 3

the use of the linear quadratic requlator method in the state space controller and observer design
The matrices R and Q are essentially design parameters or weights that you have to choose as part of the control system design, ...

10 years ago | 0

| accepted

How can one get Block Choices for a Configurable Subsystem in an array by using Matlab Command?
get_param(gcb,'BlockChoice') will give you the current block choice for the block. get_param(gcb,'MemberBlocks') wi...

10 years ago | 1

| accepted

Variable orifice
Yes, I see the same error in R2009b. The problem is with the pressure differential values, you only provide two values and the <...

10 years ago | 0

How I can model the limit of the speed and acceleration using a Simulink block?
Presumably, you're feeding your valve block with a signal representing the opening of the valve. How is that signal generated? ...

10 years ago | 1

Difference between Simulink Coder, Embedded Coder and Matlab Coder
MATLAB Coder is used to generate ANSI C/C++ code from MATLAB and is a pre-requisite for Simulink Coder and Embedded Coder. Simul...

10 years ago | 9

Exporting NX (Unigraphics) models to SimMechanics
As you found out, NX is not supported out of the box. However, there is an <http://www.mathworks.com/help/releases/R2011a/toolbo...

10 years ago | 0

| accepted

translational body spring damper system with friction
Hi, Looking at your model, I would make the following comments: * This is a numerically stiff system, so use a stiff solve...

10 years ago | 1

| accepted

Problem to resolve algebraic loop
Put the transfer function between the voltage measurement block and the Simulink - PS Converter block, or between the PS - Simul...

10 years ago | 1

Help in Solver error
It really isn't difficult, you need to start thinking... The following is pretty self-explanatory: <<https://lh6.googleuserco...

10 years ago | 2

Simulink Coder(RTW) can be purchased separately without having entire Matlab software?

10 years ago | 0

matlab 2011
Ask the IT department of your university what's the best way for you to access MATLAB, they may have some licenses available for...

10 years ago | 0

Varying parameters During a simulation
Also have a look at <http://www.mathworks.com/matlabcentral/fileexchange/24294-simulink-signal-viewing-using-event-listeners-and...

10 years ago | 1

| accepted

Have you tried: get_param(gcb,'CompiledSampleTime') HTH, Arnaud

10 years ago | 0

How could you find the index number of an answer output?
[max_value, max_idx] = max(drhodz) The index |ii| corresponding to the maximum value |max_value| is given by |max_idx|. ...

10 years ago | 0

| accepted

Plotting 3D graph using measured points
Maybe try <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/plot3.html |plot3|>. Arnaud

10 years ago | 1

| accepted

Where can I find information on CCS IDE versions that can be supported with Embedded Coder?

10 years ago | 0

| accepted

TLC file syntax help?
Have you read the documentation on <http://www.mathworks.com/help/releases/R2011a/toolbox/rtw/tlc/bp6j4co.html Target Language C...

10 years ago | 1

| accepted

Photovoltaic MPPT fuzzy logic in Matlab/Simulink

10 years ago | 0

| accepted

sample time mismatch
One of your busses has a continuous sample time, while the other one a discrete sample time of 1s. Use a <http://www.mathworks.c...

10 years ago | 2

Transfer data wireless
You can maybe use the <http://www.mathworks.com/help/releases/R2011a/toolbox/instrument/tcpipsend.html TCP/IP Send> and <http://...

10 years ago | 1

How do I run a simulation with a transfer function block and a multi dimensional input ?
The transfer function block only supports scalar input signals, hence the error, see the <http://www.mathworks.com/help/releases...

10 years ago | 0

If you want to inject your measured input data in the model, use one or more root-level <http://www.mathworks.com/help/releases/...

10 years ago | 0

Doubt in SOC of battery
The SOC is calculated as follows (see <http://www.mathworks.com/help/releases/R2011a/toolbox/physmod/powersys/ref/battery.html B...

10 years ago | 0

Help in my model
What is the value of your resistance and what's the amplitude of your current source? I suspect current's still flowing through ...

10 years ago | 0

| accepted

How to generate .m file from SIMULINK model (.mdl file)?
As Andreas suggested, use the <http://www.mathworks.com/help/releases/R2011a/toolbox/simulink/slref/sim.html |sim|> command to r...

10 years ago | 1

Help to understand generic battery model
I think the second one is correct. The first one would be correct too if the - port was grounded (which it isn't). HTH, Ar...

10 years ago | 0

| accepted

Doubt in Ideal Switch
Are you referring to the <http://www.mathworks.com/help/releases/R2011a/toolbox/physmod/powersys/ref/idealswitch.html Ideal Swit...

10 years ago | 1