
504 A Computational Introduction to Digital Image Processing, Second Edition
10. Enter the command
MATLAB/Octave
>> imshow(issquare(reshape([1:65536],256,256)))
What are you seeing here?
11. Plot the function tan(x) with the f ollowing commands:
MATLAB/Octave
>> x = [0:0.1:10];
>> plot(x,tan(x))
>> figure,plot(x,tan(x)),axis([0,10,-10,10])
What does the axis function do? Read the help file for it. Experiment with changing
the last two numbers in
axis
for the above command.