add exercise output files to git
This commit is contained in:
parent
3f0f4bf2b3
commit
d126c785fe
6
programming/code/logicalIndexingBenchmark.out
Normal file
6
programming/code/logicalIndexingBenchmark.out
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
>> logicalIndexingBenchmark
|
||||||
|
time needed to manually filter elements smaller than 0.5 in a vector of length 100000
|
||||||
|
Elapsed time is 0.008562 seconds.
|
||||||
|
|
||||||
|
time needed to do the same with logical indexing
|
||||||
|
Elapsed time is 0.001543 seconds.
|
12
programming/code/logicalVector.out
Normal file
12
programming/code/logicalVector.out
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
>> logicalVector
|
||||||
|
Logischer Vektor y:
|
||||||
|
|
||||||
|
y =
|
||||||
|
1 1 1 1 0 0 0 0 0 0
|
||||||
|
|
||||||
|
Datentyp von y: logical
|
||||||
|
|
||||||
|
Alle Elemente aus x, die kleiner als 5 sind:
|
||||||
|
|
||||||
|
ans =
|
||||||
|
1 2 3 4
|
4
programming/code/vectorsize.out
Normal file
4
programming/code/vectorsize.out
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
>> vectorsize
|
||||||
|
length of a: 10
|
||||||
|
number of dimensions (rank) of size_of_a: 2
|
||||||
|
number of entries in the 2nd dimesion of a: 10
|
Reference in New Issue
Block a user