Professional Documents
Culture Documents
EGH315 Lab Week 7
EGH315 Lab Week 7
i. m-file script
M-file Scripts contains a collection of commands(as in the Command window).
They are useful for automating series of MATLAB commands, such as repeated
computations.
Simple Script Example
The commands below obtain information from the cell.tif image file, read it into
MATLAB, store into array I and displays it in a figure.
2nd method: Save file first. Go to Command Window, & type the file name(without the ‘.m’)
Eg. if your filename is abc.m, type abc in Command window
In PC MATLAB:
Under Publish tab, click Publish. This will publish as default HTML(Web format)
B. Image Deblurring
NB: PSF is the 3D diffraction pattern of light from source object to the lens
>> I = imread('cell.tif');
>> figure, imshow(I), title('Original Image');
Q1 :
Change the THETA value to 45, 90. Describe the effects.
Answer: ________________________________________________________
Change the est_nsr to 0.01, 0.0001, 0.008 & describe the effect.
Answer: ____________________________________________________________
A. Image Deblurring
B. Creating your own script m-file