Vous êtes sur la page 1sur 1

hjhhuiubjjbfxfxgchjjl fdhfhal;fdshfsldhfu3bvefjgiriahsn gsfdsshgjkggkbbbbfdfasdf

fgiirkshnvaf;fiekffkl

# Read the XLS file


[D txt] = xlsread('foo.xls');
%# Assume the columns are fixed (if not see note 3)
r_col = 1; gmr_col = 2;
%# Get the type of conductor
cond = inputdlg('type of conductor?');
%# Search for the right row
index = strcmp(txt(2:end,1),cond);
%# Compute the data
x = log(D(index,r_col));
y = D(index,gmr_col).^2;

Excel = actxserver('Excel.Application');
try
Excel = actxserver('Excel.Application');
catch
Excel = [];
end
ExcelVersion = str2num(Excel.Version);

[A,B]=xlsread('excelexample.xlsx');
t=A(:,1);
y=A(:,2);
xlabel(B(2))
ylabel(B(3))
Title(B(1))
figure
h=axes('fontsize',14)
plot(t,y,'linewidth',12)
grid on

Vous aimerez peut-être aussi