Question


LQI(): integrator response not as expected
I have a simple 2nd-order spring/mass/damper system in closed-loop configuration, that works as expected under LQR control; see ...

1 year ago | 2 answers | 1

2

answers

Question


Transfer Function: Continuous approximation of discrete bode
Is there a straightforward way to create a continuous-time transfer function (TF) from a discrete-time TF, that matches the disc...

2 years ago | 1 answer | 0

1

answer

Question


Estimate first order transfer function from Phase at Frequency
What command would I use to estimate a first order transfer function (TF), from a known Phase at Frequency? The TF is known o...

2 years ago | 1 answer | 0

1

answer

Question


Find Bode Phase of Uncertainty models
How can I find the phase programatically, of an Uncertainty plot like this one? This transfer function is build using the Robust...

2 years ago | 1 answer | 0

1

answer

Question


Manipulating "Uncertain" (ureal) plots
I'm using the Robust Control toolbox to plot uss (uncertain parameter) functions creating with ureal. Using eg Bode() will aut...

2 years ago | 1 answer | 0

1

answer

Question


Simulink is optimizing out simple blocks -- why?
I'm trying to understand why Simulink is optimizing out simple blocks. This is a basic discrete filter. None of the input coef...

4 years ago | 0 answers | 0

0

answers

Answered
Error in exponential transfer function
Interesting, thanks for the reply Walter. Could you clarify? I'm missing something basic here -- so I'd like to understand bett...

4 years ago | 0

Question


Bug: Simulink 2019b crashes when accessing plot
On OSX (latest version), Simulink 2019b repeatedly crashes when accessing a plotted scope output. The model is basic: a step ...

4 years ago | 2 answers | 4

2

answers

Answered
Error in exponential transfer function
Just a gentle bump, as this is still unresolved :)

4 years ago | 0

Question


Error in exponential transfer function
I'm having difficulty implementing certain transfer functions in non-state-space form: Eg 1 - exp(-s) or exp(-s) + 1 Basi...

4 years ago | 2 answers | 0

2

answers

Answered
Cannot save Fig as PNG -- Matlab bug?
Again, PNG does not work. Anyone have further thoughts?

6 years ago | 0

Question


Cannot save Fig as PNG -- Matlab bug?
I think there's a problem with Matlab. I'm unable to save a figure as png, using the basic command "saveas(gcf, 'test.png')". Th...

6 years ago | 1 answer | 0

1

answer

Question


Bug in Persistent variables? Simulink M-function
I am unable to initialize a Persistent variable. Here's a snippet of code in a Simulink M-function which does not actually set '...

6 years ago | 1 answer | 1

1

answer

Answered
Bug in Persistent variables? Simulink M-function
Okay, now I'm certain it's a BUG. The code WILL -- or will NOT -- properly initialize a variable depending on where it is loca...

6 years ago | 0

Answered
Why is my serial port not recognized with MATLAB on Linux or Solaris?
This doesn't seem to work on Ubuntu 64-bit. Since i need a fixed port in my code for each of many devices, I created a symbolic ...

6 years ago | 0

Question


Vectors to Contour3...confused
I have 3 linked vectors from physical data: call them vectors a,b,c. A given cell entry across a,b,c are linked (taken at the sa...

6 years ago | 0 answers | 0

0

answers

Question


'syms' not working, but I do have the Symbolic Math Toolbox
*I have the symbolic math toolbox*, but 'syms' isn't working. How can I fix this? VER info below: "----------------------...

7 years ago | 2 answers | 0

2

answers

Question


Simulink: Function Handles Not Supported!
I have a lengthy Matlab program, parts of which I'd like to embed into a Simulink program. In the Matlab program there are numer...

8 years ago | 0 answers | 0

0

answers

Answered
Matlab crashes Ubuntu system
It turns out that my 32 GB system is out of RAM. allvars = whos; memused_bytes = sum([allvars.bytes]) memused_GB = me...

8 years ago | 0

Question


Matlab crashes Ubuntu system
R2014A crashes my ubuntu system so hard, that I have to physically pull the plug. It's reproducible and happens every time. Afte...

8 years ago | 1 answer | 0

1

answer

Question


Different results for Simulink's External and Normal mode!
In Real-Time Windows Target (Simulink), a simple DC motor model works fine in Normal mode (unit step input), but becomes unstabl...

9 years ago | 1 answer | 0

1

answer

Question


Packet Input (Simulink) returning 0s
EDIT: This works in Normal mode, but not External mode! In External Mode, the Packet Input block in Simulink only returns 0s ...

9 years ago | 1 answer | 0

1

answer

Question


External Mode scope traces (Simulink)
Why does data not show up on a scope in External Mode, in a simple Real-Time Windows Target application (in Simulink)? First ...

9 years ago | 1 answer | 0

1

answer

Answered
Simulink Encoder Block outputting pulses only?
Thanks for the reply and thoughts. In "Board Setup" there are two counters to configure: Counter 0 Mode and Counter 1 Mode. I ha...

9 years ago | 0

Question


Simulink Encoder Block outputting pulses only?
The Simulink "Encoder Input" block (Real-Time Windows Target toolbox) seems to output pulses only when the encoder is turned. I...

9 years ago | 2 answers | 0

2

answers

Question


How to get custom library to show up in Simulink Library Browser?
If you make an .mdl or .xls model file in Simulink, how can you make it show up in the library browser for easy insertion into d...

9 years ago | 1 answer | 0

1

answer

Question


Convert Floating Point (Double) to array in Simulink?
The net yielded no results for this question... In Simulink, how do you convert a floating point value (eg 1.234) into an array...

9 years ago | 0 answers | 0

0

answers

Question


Analog Output block keeps timing out (glitches)
Using the Analog Output block in Real-Time Windows Target run in Normal mode, I always get flat-waveform glitches that last ~50 ...

9 years ago | 1 answer | 0

1

answer

Question


SIMULINK: send string via Stream Output
How are strings sent to serial devices in Simulink? If I have a string that's of length N, all ASCII characters, how can I speci...

9 years ago | 1 answer | 1

1

answer

Answered
Memory leak from plotting?
But as I said, i'd like to keep the previous lines on-screen. That link only gives ideas for clearing or modifying the current o...

9 years ago | 0

Load more