Community Profile

John

Last seen: 3 days ago Active since 2014

Content Feed

View by

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...

5 months ago | 1 answer | 0

1

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...

5 months ago | 1 answer | 0

1

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...

7 months ago | 1 answer | 0

1

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...

7 months ago | 0 answers | 0

0

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...

2 years ago | 0 answers | 0

0

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...

2 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 ...

2 years ago | 2 answers | 3

2

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

2 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...

2 years ago | 2 answers | 0

2

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

4 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...

4 years ago | 1 answer | 0

1

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 '...

4 years ago | 1 answer | 1

1

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...

4 years ago | 0

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 ...

4 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...

5 years ago | 0 answers | 0

0

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: "----------------------...

5 years ago | 2 answers | 0

2

Question

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...

6 years ago | 0 answers | 0

0

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...

6 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...

6 years ago | 1 answer | 0

1

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...

8 years ago | 1 answer | 0

1

Question

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

8 years ago | 1 answer | 0

1

Question

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

8 years ago | 1 answer | 0

1

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...

8 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...

8 years ago | 2 answers | 0

2

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...

8 years ago | 1 answer | 0

1

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...

8 years ago | 0 answers | 0

0

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 ...

8 years ago | 1 answer | 0

1

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...

8 years ago | 1 answer | 1

1

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...

8 years ago | 0

Question

Memory leak from plotting?
In Ubuntu 12.04 64-bit, matlab 2014a, I'd like to be able to plot thousands of lines over several minutes on the same plot (ther...

8 years ago | 2 answers | 0