%-- 22.03.2024 14:16 --%
help
help sin
x = -pi:0.01:pi;
plot(x,sin(x)), grid on
clc
clear
clc
40^3
(40^3 + 3*2e3)
2 * ans
variable_1 = 25
variable_2 = 10
clc
format compact
variable_1 , variable_2 ; variable_1+variable_2
variable_1
variable_1 ;
variable_1 , variable_2 , variable_1+variable_2 ;
variable_1+variable_2
2 *ans
ans - variable_2
a = ans - variable_2
ans
ans = 2 * ans
clc
ans
ans = 2 * ans
clc
1 / 0
0 / 0
sin(pi/2)
sin(pi)/pi
clc
mein_vektor = [1 2 3]
mein_vektor
mein_vektor(2)
mein_vektor(1)
mein_vektor(3)
mein_vektor(4)
mein_vektor
mein_vektor(2) = 2
mein_vektor(1,2) = 4
mein_vektor(1,2) = 2
clc
meine_matrix = [ mein_vektor ; 5 6 ]
mein_vektor
meine_matrix = [ mein_vektor ; 5 6 7 ]
clc
meine_matrix
meine_matrix(2,:)
meine_matrix(:,:)
meine_matrix
meine_matrix(:,[2 3])
meine_matrix(:,[1 3])
meine_matrix(:,[3 1])
clc
meine_matrix
meine_matrix(:,[3 2 1])
meine_matrix(:,end)
meine_matrix(:,end-1)
meine_matrix(:,end-2)
meine_matrix(:,end-3)
clc
t = 1:10; m1w = 2:11;
n1w = 11:-1:2;
teststand = [t m1w n1w]
teststand = [t' m1w' n1w']
teststand = [t' m1w' n1w' (1:10)' (2:11)']
clc
teststand = [t' m1w' n1w' (1:10)' (2:11)']
teststand(:,[1 4 5])
clc
lang = 1:8
lang = 1:2:8
lang = 8:1
lang = 8:-1:1
lang = 8:-2:1
lang = 0.1:0.01:0.3
clc
linsp = linspace(0,10,10)
linsp = linspace(0,10,11)
linsp = linspace(0,10,110)
clc
hlep logspace
help logspace
logspace(-2,2,5)
logspace(-2,2,10)
eye(5)
clc
doc rand
rand(2,3)
doc rand
randi(3)
randi(4)
randi(40)
clc
A = [ 1 2 ; 3 4]
A = [ 1/1 1/2 ; 1/3 1/4]
A = [ 1 2 ; 3 4]
1/A
1./A
clc
A = [ 1 2 ; 3 4]
B = [ 1/1 1/2 ; 1/3 1/4]
A * B
A .* B
A + B
A .+ B
A + B
clc
clear
student = struct('Name','Smith','ID',123456)
student.Name
student.ID
student(2).Name = 'Doe'
student(2).ID = 123457;
student(2).ID
student.ID
student.Name
student(end+1).ID = 123458
cl
clc
datum.Day = 22
datum.Month = March
datum.Month = 'March'
datum.Year = 2024
datum(2).Year = datum.Year + 1
datum(2).Day = datum(1).Day
datum(2).Month = 'April'
clc
student
student.Date = datum(1)
student(2).Date = datum(1)
doc cell
clc
help size
ver
clc
meine_matrix(:,end-3)
meine_matrix = [ 1 2 33 ; 4 5 6]
mein_vektor
mein_vektor = [1 2 3]
length(mein_vektor)
size(meine_matrix)
length(meine_matrix)
clc
whos
help whos
clc
clear datum
clear
clc
test = 1
4>5-2
4>(5-2)
(4>5)-2
4>5-2
(4<=5)
(4>5-2 & 4<=5)
(4<=3)
(4>5-2 & 4<=3)
clc
~test
(4>5-2 & 4<=3) | ~test
(4>5-2 & 4<=5) | ~test
(4>5-2 & 4<=5) & ~test
clc
a = [ 0 0 1 1 ]
a = [ 0 0 1 1 ]'
a'
a = 1:3
a = 1:3'
a = (1:3)'
1-i
(1-i)'
(1-i).'
clc
a = [ 0 0 1 1 ]' ;
b = [ 0 1 0 1 ]' ;
[ a b a&b a|b xor(a,b) ~a ~(a&b) ~(a|b)]
[ a b a&b a|b xor(a,b) ~a ~(a&b) ~(a|b)] == 0
clc
a = -2:7
length(a)
find(a<0)
1     2
a( find(a<0) )
find(a>0)
a(find(a>0))
clc
a
a<0
[a ; a>0]
[a ; a<0]
a(a<0)
a(find(a<0))
find(a<0)
a<0
clc
a
a(a<0)
a(a<0) = 0
clc
clear
test = 5
test = 1
if test<=2; a=2, elseif test<=5; a=5, else a=10, end;
if test<=2; a=2, elseif test<=5; a=5, else a=10, end
test = 2.1
if test<=2; a=2, elseif test<=5; a=5, else a=10, end
test = 7
if test<=2; a=2, elseif test<=5; a=5, else a=10, end
clear a
clc
test = 7
if test<=2; a=2, elseif test<=5; a=5, end
clc
test = 1
switch test case 2; a=2, case {3 4 5}; a=5, otherwise a=10, end;
test = 4
switch test case 2; a=2, case {3 4 5}; a=5, otherwise a=10, end;
test = 4.1
switch test case 2; a=2, case {3 4 5}; a=5, otherwise a=10, end;
if test<=2; a=2, elseif test<=5; a=5, else a=10, end
clc
for k=1:5, k^2; end;
for k=1:5, k^2, end;
for k=1:5, abc = k^2, end;
for k=1:5, abc(k) = k^2, end;
clc
while 1, n=n+1; m=n^2, if m>10, break; end; end;
n=1;
while 1, n=n+1; m=n^2, if m>10, break; end; end;
while 1, n=n+1, m=n^2, if m>10, break; end; end;
n=1;
while 1, n=n+1, m=n^2, if m>10, break; end; end;
clc
bsp_grundlagen
clc
edit bode
clc
help mean
clc
help mittelwerte
mittelwerte([1 2 3]
mittelwerte([1 2 3])
mittelwerte([1 2 3])>3
[A,G] = mittelwerte([1 2 3])
[~,G] = mittelwerte([1 2 3])
mittelwerte([1 2 3])
%-- 22.03.2024 17:15 --%
2 *ans