Professional Documents
Culture Documents
str =
' 5'
STORING A STRING VALUE FROM A CONDITION USING IF
prompt = 'Do you want more? Y/N [Y]: ';
str = input(prompt,'s');
if isempty(str)
str = 'Y';
end
GRAPHICAL INPUT FROM USER
[x,y] = ginput(4)
x =
0.3295
0.3971
0.6352
0.4693
y =
0.8395
0.7014
0.5321
0.3006
>> plot(x,y)
IMAGE PROCESSING
CROPPING IMAGE
% Read RGB image from graphics file.
im = imread('street2.jpg');