%-- 05.04.2024 14:05 --%
clc
clear
text = ['This is a','text.']
text = ['This is a',' ','text.']
text = ['This is a text.']
text = ['This is a' ' ' 'text.']
[1 2 3]
[1 ,2 ,3]
text = ['This is a' ' ' 'text.']
text(6:7)
text(6:9)
clc
help input
clc
preis = input (['Wieviel kostet heuer \n', ...
'die Wies''n-Maß ?      ']);
15
waehrung = input ('Währung ?             ', 's');
EUR
[ 'But', preis,' ]
[ 'But', preis ]
preis
?
A
[ 'But', num2str(preis) ]
clc
num2str(15)
15
[ 'But ', num2str(preis), ' Bugs is quite high.' ]
[ 'But ', 15, ' Bugs is quite high.' ]
[ 'But ', 65, ' Bugs is quite high.' ]
help str.num
help str2num
clc
disp (['Aber ', num2str(preis, '%0.2f'), ' ', waehrung, ...
' pro Maß wird ein teurer Rausch!']);
disp (' ');                                                  % Leerzeile
clc
test_vektor = [0:0.1:10]';                       % Spaltenvektor
test_vektor = [0:0.1:10]'
clc
test_matrix = [test_vektor cos(test_vektor)];    % Matrix
test_matrix = [test_vektor cos(test_vektor)]
clc
clear ans preis text waehrung
clc
save test
clear
load test
save test.txt -ascii
ls te*
clear
load test.txt
edit test.txt
load test
clc
dummy = [test_vektor test_matrix]
clc
save test.txt -ascii dummy
clear
load test.txt
edit test.txt
clear
clc
Untitled2
clear
Untitled2
clc
ls
clc
importfile1('test.txt')
clear
clc
importfile1('test.txt')
[t1 t2 t3] = importfile1('test.txt')
clear
clc
[t1 t2 t3] = importfile1('test.txt',1,10)