Re: How to run a downloaded File (File Exchange)?




"Julia" <julia.c.hoffmann@xxxxxx> wrote in message
news:ef3036c.-1@xxxxxxxxxxxxxxxxxxx
Dear Matlab users,

can somebody tell me, how to run a downloaded file? I downloaded a
File with a for linear regressions? Now I want to use this file to do
some regressions with different inputs. I want to run a regression
for a special case. Where do I have to place the different inputs.

results = vars(w,nlag,x)
w = [1 2; 3 4; 5 6; 4 5; 7 4; 10 6]
w = an(6 x 2)
nlag = 2
x = optional matrix(6 x 1) error term of the regression.

In Command Window and run than that file with the code for the vector
regression (called varschatz.m). Or do I have to write a new editor
window containing the inputs. And saving that under for example
´vars.m´, when the first row of varschatz.m-file is:
function results = vars(y,nlag,x)

or do I have to overwrite everything in my varschatz.m-file. But the
thing is I have to run several linear regressions and don´t want to
overwrite this varschatz-file for every regression. or what I have to
do? Can somebody help me, I am really desperated with Matlab. That
would be really, really nice.

Thanks in advance

Julia


The function you want to call requires some input. These are the arguments
to the function.

So, this is the data that the function will process.

You need to create this data. This is the input. The input will be your
variables that you create.

Then call the function with this data/variables as the parameters.

Then process the result.

You do not need to modify the function file itself.

If you have never programmed in Matlab before, it will be better to learn a
little bit about Matlab using help and demos or a matlab book first. You
need to learn how to call functions. This is the very basic thing to know in
matlab.

Nasser
ps. what is "varschatz-file" means?



.



Relevant Pages