Risposto
Obtain sample time in Embedded Matlab block
I don't believe you can do this directly but you could use this code in the EML block with a clock as an input: function y ...

quasi 12 anni fa | 1

Risposto
protection techniques for simulink
You can use a <http://www.mathworks.com/help/toolbox/simulink/ug/br6xrii.html protected model reference> with a callback inside ...

circa 12 anni fa | 1

Risposto
How to implement intermittent contact using SimMechanics (e.g. Geneva wheel)?
You can utilize a <http://www.mathworks.com/help/releases/R2012a/toolbox/physmod/mech/ref/pointcurveconstraint.html point curve ...

circa 12 anni fa | 1

| accettato

Risposto
is it possible to perform real time processing on matlab..i mean can processing on speech signal be done while i am recording my speech signal?
This can be done in a couple different ways depending on your application. If you want to be able to actively perform this p...

circa 12 anni fa | 0

Risposto
How to disable RTW builds invoked by non-script means
You may be able to disable CTRL-B utilizing: File -> Preferences -> Keyboard -> Shortcuts and un-assinging the CTRL+B command...

circa 12 anni fa | 0

| accettato

Risposto
position and resize a scope by line command
I'm not sure what you mean with gain slider but this will help with the scope. hScopes = findall(0,'Tag','SIMULINK_SIMSCOPE...

circa 12 anni fa | 2

| accettato

Risposto
Having problems building custom block
On line 36 you set vf = 0; With no units. I believe that is why vf.der is 1/s instead of in^3/s. To resolve this you ...

circa 12 anni fa | 1

| accettato

Risposto
Output switch in Simulink
You can use a <http://www.mathworks.com/help/toolbox/simulink/slref/randomnumber.html random number generator> to trigger 4 diff...

circa 12 anni fa | 2

| accettato

Risposto
How to use Bit Set block in Simulink?
See this <http://i.imgur.com/YPqR4.png demo image> for a rough example of how you can convert each binary digit independently ba...

circa 12 anni fa | 2

Risposto
Change/reset initial state values in a level 2 C-mex S-function
If you wrote or have the c-code for the s-function you can simply add another input and write a conditional to reset the data wh...

circa 12 anni fa | 0

| accettato

Risposto
How effective is multi-core machine running Matlab/Simulink these days (2012)
Multi-core operations in MATLAB/Simulink are typically done more explicitly utilizing tools such as the <http://www.mathworks.co...

circa 12 anni fa | 0

Risposto
Phase retrieval method using continuous wavelet transform?
You can check out <http://www.mathworks.com/products/wavelet/examples.html?file=/products/demos/shipping/wavelet/wcoherdemo.html...

circa 12 anni fa | 0

| accettato

Risposto
Matlab coder: Generate C file from a m file with an internal mex file
1) <http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z7-11.html Alphabetical list of supported functions> including limitations...

circa 12 anni fa | 1

Risposto
how to change body's mass when model is simulating?
I'm not sure what the implication with the s-function is, however, there is the <http://www.mathworks.com/help/toolbox/physmod/m...

circa 12 anni fa | 1

Risposto
How can I discretize a plot using Matlab
You can utilize the <http://www.mathworks.com/help/techdoc/ref/stairs.html stairs> function to plot data without interpolating b...

circa 12 anni fa | 0

Risposto
Simulink "To Workspace" is outputing 3D array, why?
In the constant block for the 13, check the Interpret Vector Parameters as 1-D checkbox.

circa 12 anni fa | 1

| accettato

Risposto
Huge different between MatLab and operating systems?
If you are running a 64-bit version of MATLAB you need the s-function to be compiled for 64-bit MATLAB. The extension on the me...

circa 12 anni fa | 1

| accettato

Risposto
Using Simulink signal as a function variable (Real time Control System)
You need to make sure the P and I gains are <http://www.mathworks.com/help/toolbox/simulink/sfg/f4-108799.html#f4-33602 Tunable ...

circa 12 anni fa | 2

Risposto
Create a 4-pole, 300-6000HZ bandpass butterworth filter?
If you look at the documentation it mentions you can define a 2 element frequency vector that you need to normalize to the sampl...

circa 12 anni fa | 0

Risposto
How to use "Load from workspace => Initial state" option to initialize state variables of s-function
You can use the following function to utilize the SimState with an s-function: <http://www.mathworks.com/help/toolbox/simulin...

circa 12 anni fa | 2

| accettato

Risposto
#Merge and add simulink ???????#
The MERGE block should be utilized with conditionally executed subsystems. If you are trying to merge the if-else on a single l...

circa 12 anni fa | 0

Risposto
Fixed step discrete time is not really fixed in Simulink
The Simulink blog has a post that describes this behavior in pretty good detail <http://blogs.mathworks.com/seth/2012/02/09/usin...

circa 12 anni fa | 5

| accettato

Risposto
How does linmod2 order the states when the mdl contains a ss-block
You can use the <http://www.mathworks.com/help/toolbox/slcontrol/ug/linearize.html Linearize> command to obtain a state space sy...

circa 12 anni fa | 0

| accettato

Risposto
Copy matlab Simulink SUBSYSTEMS and SFUNCTIONS to another model
You can copy the blocks you find directly without the copy contents function. For example: add_block(NoOfNonMaskedSubsys...

circa 12 anni fa | 2

| accettato

Risposto
Two point hold pendulum with damping
I would use simmechanics. http://www.mathworks.com/products/simmechanics/ I'm not sure how you can do a rope. Probably co...

circa 12 anni fa | 1

Risposto
How to avoid algebraic loops in model?
Here are some good tips for algebraic loops: <http://blogs.mathworks.com/seth/2010/04/29/causes-of-algebraic-loops/ Causes of...

circa 12 anni fa | 2

Risposto
simulink model for electrically heated tube
To find out which one works best simply implement each one in Simulink and log the current to the heater. Compare this for all ...

circa 12 anni fa | 1

Risposto
mex -setup does not see a C++ compiler
It does not appear to be a supported compiler. See <http://www.mathworks.com/support/compilers/R2012a/win64.html here>. Alth...

circa 12 anni fa | 0

Risposto
ASBHL20 Model Run Problem
It looks like the model is generating code for some of the components but cannot find or execute the batch file it created. Thi...

circa 12 anni fa | 0

Risposto
How can I run a Lego Mindstorms robot without the Simulink model option "Run on target hardware"?
If you already have installed the Lego kit you could try: Go to Simulation -> Configuration Parameters Click the Code Ge...

circa 12 anni fa | 0

Carica altro