Matrix with different order

1 view (last 30 days)
Chetan Fadnis
Chetan Fadnis on 14 Jul 2021
Commented: Chetan Fadnis on 14 Jul 2021
I want to use 10*1 matrix for N=10, now as I keep changing N =20,30,40,50, matrix order must also change like, 20*1,30*1,40*1,50*1... using rand(N,1) I can produce required array. My problem is I am using a for loop, N=10:10:50 And I want to use matrix of order N*1 defined Outside of this loop. Kindly help how to write the code.
  6 Comments
Chetan Fadnis
Chetan Fadnis on 14 Jul 2021
Thank you Sir, I will be trying it.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!