MATLAB: Write a function that will take two numbers as input arguments and will print a set of concentric squares of stars whenever the row and column are odd.

functionhomework

Provide Answer

Best Answer

Here is a starting point:
1) Create a function m-file in your working directory with an appropriate name. E.g.,
edit mycircles.m
2) Put this code into this file:
% Add a description of the function, inputs & outputs, here
function mycircles(a,b)
% Insert your code for printing the "squares of stars" here
end
Add your description and your code in the places indicated.
Related Question