Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: i want to declare a matrix of n*m size-------------------------how
Replies: 6   Last Post: Mar 8, 2013 12:35 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
CandyGirl

Posts: 13
From: London
Registered: 11/20/07
Re: i want to declare a matrix of n*m size-------------------------how
Posted: Apr 30, 2008 1:48 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

You can define values for n and m, and declare it like:

a=randn(n,m)

or define n and m to be the dimensions of your matrix:

[n,m]=size(a)

hope that helped :)



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.