Image Read and Display:
-------------------------------
I = imread('barbara.png'); % reading image
imshow(I) % dislpay image
I_1 = imread('lena.tiff');
imshow(I_1)
--------------------------------------------------------
The black and white images are saved as binary(0,1) matrix while
the coloured image are stored with some distinct values defining
the colour of that pixel.
----------------------------------------------------------------------
Importing Audio file in matlab
---------------------------------
[x,Fs] = audioread('gameover.wav'); % reading file from current
directory
soundsc(x,30000); %listening at 30Khz
pause;
soundsc(x,60000); %listening at 60Khz
-------------------------------------------------------------
Reading .csv file
=---------------------------------------------------------------
M = csvread('scope1.csv');
voltage = M(:,1);
time = M(:,2);
plot(time,voltage)
-----------------------------------------------------------
Importing excel file in matlab
---------------------------------------
num = xlsread('building.xls');
floors = num(:,1);
building_heights = num(:,2);
scatterplot(floors,building_heights)
=======================================