Vectoristion of if statement

I have a nested for loop i and j and a matrix [x]. For i= 1, I have [x ]= M1 and for i=2 I have [x] = M2 . I want a matrix m= [M1 M2 ]. Actually my value of i is very large but this method will help solve my problem.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 4 Apr 2021

Community Treasure Hunt

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

Start Hunting!