Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
matlabcourse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Repository Analytics
Value Stream Analytics
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mohammed Thaha
matlabcourse
Commits
90c03e3a
Commit
90c03e3a
authored
Nov 09, 2020
by
Enrico Glerean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
history from last year course
parent
b47b7527
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
186 additions
and
0 deletions
+186
-0
AY20192020/MatlabBasics2019/history.m
AY20192020/MatlabBasics2019/history.m
+186
-0
No files found.
AY20192020/MatlabBasics2019/history.m
0 → 100644
View file @
90c03e3a
%-- 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment