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: How to create a matrix with increasing power?
Replies: 9   Last Post: Feb 28, 2014 10:06 AM

Advanced Search

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

Posts: 1,986
Registered: 12/6/04
Re: How to create a matrix with increasing power?
Posted: Feb 21, 2014 5:12 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


... snip ...
> but the result should be:
> X= [
> 1 1 2 3
> 1 2 4 8
> 1 3 9 27
> 1 4 16 64
> 1 5 25 125]
>
> which is what I believe the OP asked for. (Maybe its transposed.)
>
> I know there are more MATLAB efficient ways,
> but Timothy did ask for a SIMPLE way.


Actually, the above result should be:

> X= [
> 1 1 1 1
> 1 2 4 8
> 1 3 9 27
> 1 4 16 64
> 1 5 25 125]





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.