DSPRelated.com
Forums

Need some advice on matlab.pls help

Started by doggie April 16, 2006
Hi all, i am using matlab and encountered some problems. Kindly advice.

1)i am using newff function to create a neural network.After which,
someone advised me to set some of the parameters ,for example,
net.performFcn,net.trainParam.goal and many more. But i tried using my
matlab help and search for function to llok up for what these parameters
do. However, i can't find any help on these parameters. Where can i find
them?

2)i intend to use the train function to train my network. In the train
function, according to the help file,we can also give T(network targets)
as input. Can someone kindly explain to me what is network targets?

3)while processing the image,i came across something like  y=[13x8
logical], what does it mean? Why cant i look into the content? When i try
to do sum(y(:,1)), it gives an error saying "Function 'sum' is not defined
for values of class 'cell'." However, if i use it in an while loop
comparison statement, there is no error. Why?


4)If i want to do hardware implementation,i have to convert my code in
matlab to C++, am i right? If so, is there anyway to do so or must i write
them out in C++ format all over again?

Thanks & Regards

doggie skrev:
> Hi all, i am using matlab and encountered some problems. Kindly advice.
If you have general questions about matlab, comp.soft-sys.matlab would probably be a better place to start. DSP-related questions involving matlab are likely to be answered here.
> 4)If i want to do hardware implementation,i have to convert my code in > matlab to C++, am i right? If so, is there anyway to do so or must i write > them out in C++ format all over again?
Don't know what you mean by "hardware implementation". Do you intend to use FPGAs? Or a DSP chip? Whatever the case may be, you are likely not to be able to port your matlab code directly to the target implementation. You probably have to do the whole thing again in a suitable language. Rune
> >doggie skrev: >> Hi all, i am using matlab and encountered some problems. Kindly
advice.
> >If you have general questions about matlab, comp.soft-sys.matlab >would probably be a better place to start. DSP-related questions >involving matlab are likely to be answered here. > >> 4)If i want to do hardware implementation,i have to convert my code in >> matlab to C++, am i right? If so, is there anyway to do so or must i
write
>> them out in C++ format all over again? > >Don't know what you mean by "hardware implementation". Do you intend >to use FPGAs? Or a DSP chip? > >Whatever the case may be, you are likely not to be able to port >your matlab code directly to the target implementation. You probably >have to do the whole thing again in a suitable language. > >Rune > >
Hi Rune, how do i get to comp.soft-sys.matlab? I tried the link that says Matlab DSP at the bottom right hand of the page but the articles there mostly have no replies. Please advice. Thanks. By the way,i was thinking if its possible to convert the matlab code to C++, i guess i will have to re-code.Some functions in matlab are not available in C++ so i guess i may have to code these function myself? Anyone can help in the other questions? Thanks a lot for your help
doggie skrev:
> > > >doggie skrev: > >> Hi all, i am using matlab and encountered some problems. Kindly > advice. > > > >If you have general questions about matlab, comp.soft-sys.matlab > >would probably be a better place to start. DSP-related questions > >involving matlab are likely to be answered here. > > > >> 4)If i want to do hardware implementation,i have to convert my code in > >> matlab to C++, am i right? If so, is there anyway to do so or must i > write > >> them out in C++ format all over again? > > > >Don't know what you mean by "hardware implementation". Do you intend > >to use FPGAs? Or a DSP chip? > > > >Whatever the case may be, you are likely not to be able to port > >your matlab code directly to the target implementation. You probably > >have to do the whole thing again in a suitable language. > > > >Rune > > > > > > Hi Rune, how do i get to comp.soft-sys.matlab? I tried the link that says > Matlab DSP at the bottom right hand of the page but the articles there > mostly have no replies.
Either trough http://groups.google.no/group/comp.soft-sys.matlab where you have to sign in and leave a valid email address (create a separate email account for that!) or through http://newsreader.mathworks.com/WebX?14@@/comp.soft-sys.matlab Don't know how to sign on from there.
> Please advice. Thanks. By the way,i was thinking > if its possible to convert the matlab code to C++,
Yes it is. The MathWorks sells a compiler for that, a year ago they wanted some $5000 for it. I haven't tried it myself, but it seems it doesn't produce very fast code.
> i guess i will have to > re-code.
There is no point in spending hard-earned $$ on nifty HW, and then waste the capacity on matlab auto-generated code...
> Some functions in matlab are not available in C++ so i guess i may > have to code these function myself?
I know Intel sells the LAPACK library, which is at the base of matlab, for the Pentium processors. Don't know if similar libs are available for other architectures.
> Anyone can help in the other questions?
Ask on comp.soft-sys.matlab. Rune
doggie wrote:
>[SNIP] > > Hi Rune, how do i get to comp.soft-sys.matlab? I tried the link that says > Matlab DSP at the bottom right hand of the page but the articles there > mostly have no replies. Please advice. [snip]
I doubt you got to comp.soft-sys.matlab . There have been ~400 posts in last 72 hours. There were *ONLY* ~20 that were *NEITHER* 1. reply to a previous post 2. a post with no replies Your header info implys you are attempting to use Google Groups. I've _NEVER_ seen any positive references to that service. It maybe free, *but* "you get what you pay for" ;/ You need two things: 1. quality newsreader - I *prefer* Mozilla. There _are_ others ;} 2. access to a quality news server. My ISP includes access to Supernews [http://www.supernews.com] in my subscription fee. ( available to individuals - www.supernews.com/indi_price.html )
Richard Owlett wrote:
> doggie wrote: > >[SNIP] > > > > Hi Rune, how do i get to comp.soft-sys.matlab? I tried the link that sa=
ys
> > Matlab DSP at the bottom right hand of the page but the articles there > > mostly have no replies. Please advice. [snip] > > I doubt you got to comp.soft-sys.matlab . > There have been ~400 posts in last 72 hours. > There were *ONLY* ~20 that were *NEITHER* > 1. reply to a previous post > 2. a post with no replies > > Your header info implys you are attempting to use Google Groups. > I've _NEVER_ seen any positive references to that service. > It maybe free, *but* "you get what you pay for" ;/ > > You need two things: > 1. quality newsreader - I *prefer* Mozilla. There _are_ others ;} > 2. access to a quality news server. My ISP includes access to > Supernews [http://www.supernews.com] in my subscription fee. > ( available to individuals - www.supernews.com/indi_price.html )
Pardon me for snipping nothing. I am replying via Google Groups, and I want its full facilities displayed, Google Groups isn't free; the price is learning how to use it. It is nearly as good a service as can be provided for use in a web browse, not a news reader. Jerry -- Engineering is the art of making what you want from things you can get. =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF
Jerry Avins wrote:

> Richard Owlett wrote: > >>doggie wrote: >> >>>[SNIP] >>> >>>Hi Rune, how do i get to comp.soft-sys.matlab? I tried the link that says >>>Matlab DSP at the bottom right hand of the page but the articles there >>>mostly have no replies. Please advice. [snip] >> >>I doubt you got to comp.soft-sys.matlab . >>There have been ~400 posts in last 72 hours. >>There were *ONLY* ~20 that were *NEITHER* >> 1. reply to a previous post >> 2. a post with no replies >> >>Your header info implys you are attempting to use Google Groups. >>I've _NEVER_ seen any positive references to that service. >>It maybe free, *but* "you get what you pay for" ;/ >> >>You need two things: >> 1. quality newsreader - I *prefer* Mozilla. There _are_ others ;} >> 2. access to a quality news server. My ISP includes access to >> Supernews [http://www.supernews.com] in my subscription fee. >> ( available to individuals - www.supernews.com/indi_price.html ) > > > Pardon me for snipping nothing.
You have absolution ;)
> I am replying via Google Groups,
I may have to stand somewhat corrected as your header info differs from doggie's > and I
> want its full facilities displayed, Google Groups isn't free;
In context "free" routinely refers to DOLLAR cost and yes *NSTAFL* [thank you RAH]
> the price > is learning how to use it.
has he paid it ? > It is nearly as good a service as can be
> provided for use in a web browse, not a news reader. > > Jerry > -- > Engineering is the art of making what you want from things you can get. > ����������������������������������������������������������������������� >
PS you never commented on my primary point that he never evidently got to PPS Do you wish to be recorded in in history as first/only competent person to speak favorably of Goggle Groups? ????
Richard Owlett skrev:

> PPS Do you wish to be recorded in in history as first/only competent > person to speak favorably of Goggle Groups?
Not that I want to depreave Jerry of this honour (let alone count myself as competent at anything remotely relevant or useful), but goggle *does* work. Since it started working in almost real time a couple of years ago, it is tending towards becoming practical. The downside is that one needs a valid email address to sign on to an account, and that the email address is publicised when posting. Rune
Rune Allnor wrote:

> Richard Owlett skrev: > > >>PPS Do you wish to be recorded in in history as first/only competent >>person to speak favorably of Goggle Groups? > > > Not that I want to depreave Jerry of this honour (let alone count > myself > as competent at anything remotely relevant or useful), but goggle > *does* > work. Since it started working in almost real time a couple of years > ago, > it is tending towards becoming practical. The downside is that one > needs > a valid email address to sign on to an account, and that the email > address > is publicised when posting. > > Rune >
So Google now has *TWO* positive references ;) OP could not evidently view posts. I, with "non free" access, could. I still claim 'you get what you pay for' ;}
Thank you everyone. I found the site, but its in a funny kind of language,
not all the content are in english so its quite difficult to navigate.
Thanks anyway :)