photo

Steve D


UCSD

Actif depuis 2011

Followers: 0   Following: 0

Message

Statistiques

  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

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

environ 12 ans il y a | 2 réponses | 1

2

réponses

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

plus de 12 ans il y a | 2 réponses | 0

2

réponses

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

presque 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
Looping past the end of an array - I don't see how?
Is the problem that the array indexes from 0 instead of 1?

presque 13 ans il y a | 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 ...

presque 13 ans il y a | 5 réponses | 0

5

réponses

Réponse apportée
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...

presque 13 ans il y a | 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...

presque 13 ans il y a | 2 réponses | 0

2

réponses