can you solve this using MATLAB
Solution
%Question1.mfor i=1:5 for j=1:5 if(i>j) fprintf(” “); else fprintf(“* “); end end fprintf(“n”);end
===============================
%Question2.mfor i=1:5 for j=1:5 if(i==j || (i+j==6) || j==1 || j==5)
OR
OR