Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Variables/MATLAB/variables-1.m
Normal file
17
Task/Variables/MATLAB/variables-1.m
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
a = 4; % declare variable and initialize double value,
|
||||
s = 'abc'; % string
|
||||
i8 = int8(5); % signed byte
|
||||
u8 = uint8(5); % unsigned byte
|
||||
i16 = int16(5); % signed 2 byte
|
||||
u16 = uint16(5); % unsigned 2 byte integer
|
||||
i32 = int32(5); % signed 4 byte integer
|
||||
u32 = uint32(5);% unsigned 4 byte integers
|
||||
i64 = int64(5); % signed 8 byte integer
|
||||
u64 = uint64(5);% unsigned 8 byte integer
|
||||
f32 = float32(5); % single precision floating point number
|
||||
f64 = float64(5); % double precision floating point number , float 64 is the default data type.
|
||||
|
||||
c = 4+5i; % complex number
|
||||
colvec = [1;2;4]; % column vector
|
||||
crowvec = [1,2,4]; % row vector
|
||||
m = [1,2,3;4,5,6]; % matrix with size 2x3
|
||||
1
Task/Variables/MATLAB/variables-2.m
Normal file
1
Task/Variables/MATLAB/variables-2.m
Normal file
|
|
@ -0,0 +1 @@
|
|||
global b
|
||||
Loading…
Add table
Add a link
Reference in a new issue