Re: Newbie questions




Josh Drayton wrote:
> Ok yeah i tried that and tried looking, i guess what my real question
> is, is how to structure a matlab program i have a gui function that
> was provided to me, I have no idea how to use it and i think i'm
> expected to create other functions as well but what goes in them how
> do u pass variables?
>
> i have created a training input var and a minmax var(matrix) to call
> the function net = newff(minmax,(9,1)), {'logsig' 'logsig'});
>
> i don't think the net variable is set up the right way tho cause it
> says it has 1 input when i actually need 9?

If p is your input training data matrix, with H hidden nodes and 9
output nodes try

net = newff(minmax(p),[H 9],{'logsig' 'logsig'})

However, unless you have binary output targets {0,1}^9, I would
recommend

net = newff(minmax(p),[H 9],{'tansig' 'purelin'})

Hope this helps.

Greg


> Duane Hanselman wrote:
> >
> >
> > Josh Drayton wrote:
> >>
> >>
> >> Hi i'm extremly new to matlab and have no idea on how to
> program
> >> with
> >> it
> >
> > Fire up MATLAB and go to the help menu. Poke around there and you
> > will find out how to do things.
> >
> > Do an internet search for matlab tutorial. You will find a bunch.
> > Do
> > them.
> >
> > No one here will give you a handheld tutorial and training in what
> > you need to do for "uni". That you need to do on your own
> > initiative.
> >
> > Duane

.



Relevant Pages

  • segmentation problem causes crash
    ... I wrote a matlab program which detects NALU headers in an h264 ... encoded video file. ...
    (comp.soft-sys.matlab)
  • Re: segmentation problem causes crash
    ... Try starting MATLAB with the debug memory manager see ... I wrote a matlab program which detects NALU headers ... [a b GOP GOPdiff]=fileToMatrix1n ...
    (comp.soft-sys.matlab)
  • Re: Runtime Error!
    ... Does anyone know of any MATLAB code that could cause such an error? ... It sounds like you are running a matlab program which was compiled to a .exe ... You could also try to use exception handling in Matlab to catch the run-time ...
    (comp.soft-sys.matlab)
  • Re: MATLAB working with .exe
    ... possible that while a MATLAB program is running, ... file is called upon and then the MATLAB compiler would ... the .exe file or is this an instance where we need ...
    (comp.soft-sys.matlab)
  • Re: MATLAB working with .exe
    ... possible that while a MATLAB program is running, ... the .exe file or is this an instance where we need ... system% Call the routine to perform the calculations ...
    (comp.soft-sys.matlab)