Question

Matlab: How can I construct an array of sqaures like, 1 4 9 16 25 36...

Matlab: How can I construct an array of sqaures like, 1 4 9 16 25 36 49 64 81 100 with a one-line command (so not using a loop)

0 0
Add a comment Improve this question Transcribed image text
Answer #1
a one-line command  to create 1 4 9 16 25 36 49 64 81 100 is [1:10].^2
[1:10].^2
Add a comment
Know the answer?
Add Answer to:
Matlab: How can I construct an array of sqaures like, 1 4 9 16 25 36...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT