Question about creating matrices.

1 view (last 30 days)
piggy_jes
piggy_jes on 2 Feb 2015
Answered: Image Analyst on 2 Feb 2015
How can I randomly create two non-diagonal matrices that are similar ?
  1 Comment
Star Strider
Star Strider on 2 Feb 2015
What do you mean by ‘non-diagonal matrices’? What do you want them to be (dimensions, content, datatype)?
What do you mean by ‘similar’?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 2 Feb 2015
I have no idea what you mean by this confusing, self-contradicting question, but you might look at the functions rand(), randn(), randi(), and randperm(). If you still need help after that, then read this link and give an example.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!