Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The code which you wrote was a simpler one. See the code for generating B matric using for loop below:
b2(1)= 0;
b3(1)=0;
b3(2)=0;
for a =1:10
b1(a)=a;
if (a+1 < 11)
b2(a+1)= a;
end
if (a+2 < 11)
b3(a+2)= a;
end
end
B = [b1) b2) b3)]
-sv