DSPRelated.com
Forums

quick matlab question

Started by Philip Newman January 15, 2004
how can one enter a matrix in MATLAB?

say I had A = 0     1
                     -3    -3

how can I do that??

cheers

phil


forget it, I've looked, nothing easy to be done. don't need to know the
answer anyway!!

cheers

Phil


"Philip Newman" <nojunkmail@ntlworld.com> wrote in message
news:wrBNb.4279$YV1.928@newsfep4-winn.server.ntli.net...
> how can one enter a matrix in MATLAB? > > say I had A = 0 1 > -3 -3 > > how can I do that?? > > cheers > > phil > >
Hi,
Just type the following,
A = [ 0 1 ; -3 -3]
(Or maybe it should be a coma ?)

Hope this helps ;)


Philip Newman wrote:
> how can one enter a matrix in MATLAB? > > say I had A = 0 1 > -3 -3 > > how can I do that?? > > cheers > > phil > >
ahh! excellent!! cheers

Phil

"herbert arthur" <herbert.arthur@caramail.com> wrote in message
news:bu6rpf$ql7$1@news-reader3.wanadoo.fr...
> Hi, > Just type the following, > A = [ 0 1 ; -3 -3] > (Or maybe it should be a coma ?) > > Hope this helps ;) > > > Philip Newman wrote: > > how can one enter a matrix in MATLAB? > > > > say I had A = 0 1 > > -3 -3 > > > > how can I do that?? > > > > cheers > > > > phil > > > > >