Commit 90c03e3a authored by Enrico Glerean's avatar Enrico Glerean

history from last year course

parent b47b7527
%-- 27/11/2019, 11.44 --%
cd ,,
cd ..
analyze
session3
clc
num > 0
53 > 0
53 < 0
'ciao' < 0
'ciao' > 0
answer = 100 > 0
~answer]
~answer
logical('')
logical([])
a=[]
a
a=1:10;
a(4:6)=[]
a='ciao_sono_enrico'
a(6:11)
a(5:10)
a(6:10)
a(6:10)=[]
help any
any([1 0 0 0 0])
any([2 0 0 0 0])
help near
for i = 'aeiou'
disp('i')
end
disp(i)
for i = 'aeiou'; disp(i);end
'a':'z'
1:'z'
manyzeros(end)
manyzeros(100)
total
plot(rand(10,1))
help plot
edit corr
edit kelvin_to_celsius.m
help kelvin_to_celsius
help corr
help kelvin_to_celsius
ctemp = kelvin_to_celsius(0)
help corr
RHO = corr(X)
RHO = corr(randn(100,10));
edit fahr_to_celsius.m
edit fahr_to_kelvin.m
fahr_to_celsius(0)
fahr_to_celsius(32)
edit outer.m
outer('helium')
edit center.m
z = zeros(2,2)
center(z, 3)
data = csvread('data/inflammation-01.csv');
centered = center(data(:),0);
disp([min(centered(:)) mean(centered(:)) max(centered(:))])
average= mean(centered(:))
disp(average)
disp([min(centered(:)) mean(centered(:)) max(centered(:))])
disp(num2str([min(centered(:)) mean(centered(:)) max(centered(:))]))
kelvin_to_celsius()
kelvin_to_celsius(100)
kelvin_to_celsius(100,1)
[out]=kelvin_to_celsius(100)
[out1 out2]=kelvin_to_celsius(100)
files = dir('data/inflammation-*.csv')
files(1)
csvread(files(1).name)
files(1).name
csvread([files(1).folder '/' files(1).name]);
pwd
['data/' files(1).name]
edit analyze.m
analyze_dataset('inflammation-01.csv')
clear all
close all
analyze_dataset('inflammation-01.csv')
numbers
clear all
close all
total
help assert
plot(randn(100,1))
h=gcf
h.Number
h
h.Number=2
set(h,'Number',2)
help set
clc
a = pi
clear all
clc
a = pi
figure
h = figure
a
h
h.Number
h.Position
h.Position=[0 0 100 100]
h.Position=[0 0 500 500]
h.Position=[100 100 500 500]
h.Number = 4
for i =1:10;figure(i);end
figure(7)
gcf
plot(randn(100,1))
figure(7)
figure(6)
gcf
figure(7)
imagesc(randn(100,100))
edit complex_plot.m
randn
complex_plot
plot(data)
complex_plot
help rng
rng(0)
rand(1,10)
rng(0)
rand(1,10)
rng(1)
complex_plot
size((0:T))
size((1:T))
complex_plot
h.LineWidth=2
h.MarkerSize=20
h
complex_plot
h
complex_plot
h
h(1)
complex_plot
h(1)
h(2)
complex_plot
gcf
complex_plot
ah.YLim=[-4 4];
ah
ah.XTick
ah.XTickLabel
complex_plot
ah
complex_plot
close all
histogram(data)
histogram(data(:,1))
help histogram
histogram(data(:,1),20)
hold on
histogram(data(:,2),20)
complex_plot
edit fft
edit performance_testing.m
performance_testing
tic
toc
performance_testing
help parfor
z=1;
for i=2:T;
z(i)=x(i)+z(i-1);
end
z=
z
z=1;
parfor i=2:T;
z(i)=x(i)+z(i-1);
end
z=1;
parfor i=2:T;
z(i)=x(i)*10;
end
edit fft
performance_testing
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment