# s.p4m

Attivo dal 2016

Followers: 0   Following: 0

#### Feeds

Visto da

Risposto
While loop for sums?
sum=0; k=0; while(sum<=5*10^6) if(mod(k,2)) sum=sum+k^2; end k=k+1; end Next time please try...

oltre 7 anni fa | 0

Risposto
How to represent each entry of a matrix by its own box with matlab
I found a script online which does exactly what I want <https://de.mathworks.com/matlabcentral/fileexchange/46010-grid-plot> ...

oltre 7 anni fa | 0

| accettato

Domanda

How to represent each entry of a matrix by its own box with matlab
Hey everybody I want to know if is possible to make a pcolor plot where the color values isn't stored on the edges of the boxes...

oltre 7 anni fa | 2 risposte | 0

### 2

risposte

Risposto
Generate a vector X of 100 independent samples from Gaussian distribution
You could also use the <http://de.mathworks.com/help/stats/random.html random> comand X = random('norm',5,3,100,1);

quasi 8 anni fa | 0

Risposto
for and if statements
small = 0; big = 0; mid = 0; test = random('Normal',1,100,1,10); for k = 1:length(test) if ( test(k) < 25 )...

quasi 8 anni fa | 0

Risposto
I have 2 time series data, one is real data another is my plant model output, how can I calculate percentage of fitness?
You could use the <http://de.mathworks.com/help/ident/ref/compare.html?searchHighlight=compare compare> comand. For exam...

quasi 8 anni fa | 1

| accettato

Risposto
Random number time series
ln = 100; % length of timeseries Ts = 1; % timestep for k = 1:ln tmp_mean = 2+2*(k-1)/(ln-1); % your linear...

quasi 8 anni fa | 0

| accettato

Domanda

compare vs forecast with models
I'm using ARMA-models to predict a signal. My signal is a timeseries with _n_ points; input = iddata(signal,[],Ts); My m...

quasi 8 anni fa | 1 risposta | 0

risposta