photo

Steve D


UCSD

Active since 2011

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


Initializing vs growing a structure
I have read the advice on how to avoid inefficient use of memory by preallocation of matrices using zeros for eg. I am having t...

12 years ago | 2 answers | 1

2

answers

Question


Plot axis limits
I am wasting my life trying to get the axes to go from a to b (ONLY!). For example, the data file goes from 290 to 420 (varia...

12 years ago | 2 answers | 0

2

answers

Question


White space at the ends of some plots and bars
An intermittant problem is that I give matlab a couple vectors to plot, where x is of known length and y matches. But it tacks ...

13 years ago | 1 answer | 0

1

answer

Answered
Looping past the end of an array - I don't see how?
Thanks for your suggestions. It looks like matlab evaluates the while conditions in order such that the i that is over the limi...

13 years ago | 0

Answered
Looping past the end of an array - I don't see how?
Is the problem that the array indexes from 0 instead of 1?

13 years ago | 0

Question


Looping past the end of an array - I don't see how?
When I run this code, it runs K times and bombs (depending on how the array was randomized) due to an array index out of bounds ...

13 years ago | 5 answers | 0

5

answers

Answered
The case of the odd case statement
%sorry for the missing indents before. daylight = 1; while daylight whatever=1; while whatever r = fix(2.99...

13 years ago | 0

Question


The case of the odd case statement
So I entered the following code and tried it with the dispaly(r) either commented out or not. Its just trying to try all case s...

13 years ago | 2 answers | 0

2

answers