Community Profile

# John

20 total contributions since 2007

Contributions in
View by

How to simulate a multivariable autoregressive model forecast
With assistance from Matlab support, the following code was created to compare the original data with forecast values from the f...

1 month ago | 0

| accepted

Question

How to simulate a multivariable autoregressive model forecast
Below is the example for arx command, followed by an estimate of the response. How to modify the example and forecast to repres...

1 month ago | 1 Answers | 0

### 1

Question

Multi thread C mex for VAR estimation and evaluation
I need a matlab m-file for a simulink matlab function call block. The m-file should consist of two main sub-threads, one for ca...

3 months ago | 0 Answers | 0

### 0

Question

How to plot second order ode
syms m c dy k y t y(t) dy(t) y0 dy0 sol=dsolve(m*diff(dy) +c*dy + k*y == 3*sin(2*t),diff(y) == dy,y(0)==y0,dy(0)==dy0); ez...

7 months ago | 0 Answers | 0

### 0

Question

How to compare two random signals
I have two simulations of ship motion, and measured ship motion. Generally, the motion is random. I've been asked to compare t...

9 months ago | 3 Answers | 0

### 3

Question

Can lagged variables be used in n4sid
A dynamic system is driven by random forcing, so there are only output measurements. AR model works well with a small number of...

10 months ago | 0 Answers | 0

### 0

Question

How to color a line based on error range
Original question: I'm trying to color a line based on the error, with levels set at 10% and 25% of the error range. The attach...

11 months ago | 1 Answers | 0

### 1

Question

Solve for symbolic initial conditions
A second order mass, damper, spring system can be solved from syms h(t) m c k h0 dh0 C10 C11 Dh=diff(h(t),t); eqs = m...

1 year ago | 1 Answers | 0

### 1

Responded

Re: find file in folder or sub folders
David, in regular expressions, star (*) is the repeat character, dot (.) is anything matches character. '.*\.mat' will match *...

1 year ago | 62001 views

Question

How to plot the model prediction error as a function of forecast horizon?
I would like to be able to identify a model from some data, say the first 1000 time samples, and then use the remaining data (80...

1 year ago | 0 Answers | 0

### 0

Question

I get the following errors when using mex >> mex -v fmpc_sim.c Verbose mode is on. Neither -compatibleArrayDims nor...

2 years ago | 1 Answers | 0

### 1

Responded

Re: generating noise with given psd
I tried to follow the corrections, but appear to be doing something incorrectly. The following code will plot a PSD, interpolate...

5 years ago | 5012 views

Posted

Generating colored noise in simulation
The psd can be used to generate a time series of colored noise since the psd is proportional to the square of the fft magnitude....

5 years ago | 1579 views

Posted

Window media player returns to first frame
writeVideo was used to store a simulation to an avi file. When the avi file is replayed using Windows Media Player, the replay ...

5 years ago | 1268 views

Posted

Help with setting camera position, location, and view angle
When I set the position, location, and view angle in a subplot, the view fills the figure. Is there a way to set the viewport s...

5 years ago | 1972 views

Help bining 2d data (or using hist2)
Never mind, the error is in the linspace range. Here's the correct code to show 2d hist. function hist3_test close all; cl...

5 years ago | 0

Question

Help bining 2d data (or using hist2)
The following code does not seem to produce the right results. Any suggestions? The upper plot shows the points, while the low...

5 years ago | 1 Answers | 0

### 1

Question

Edit subplot
I was going to ask a question, but the test program worked, and I noticed I had the wrong number of rows specified in the progra...

5 years ago | 0 Answers | 0

### 0

Posted

Model following controller for periodic systems
Hi, J. Vorwald

5 years ago | 1032 views

Responded

Re: waitbar TeX warning
Kelly <kakearney@nospamgmail.com> wrote in message appearing without it's a bit by turning needed, rather without Kelly The ...

9 years ago | 6399 views