photo

Steve D


UCSD

Aktiv seit 2011

Followers: 0   Following: 0

Nachricht

Statistik

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

mehr als 12 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


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

etwa 13 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 13 Jahre vor | 1 Antwort | 0

1

Antwort

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

Frage


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

mehr als 13 Jahre vor | 5 Antworten | 0

5

Antworten

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

mehr als 13 Jahre vor | 0

Frage


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

mehr als 13 Jahre vor | 2 Antworten | 0

2

Antworten