Week 5 Flashcards
what does this mean? y = int16(10);
it is a 16-bit signed integer array
what is a signed type ?
Signed types enable you to work with negative integers as well as positive, but cannot represent as wide a range of numbers as the unsigned types because one bit is used to designate a positive or negative sign for the number. Source WIKI
what is the default floating-point number?
double precision
what can you do to verify that x is a floating-point number
Use the ‘isfloat’ command which will return a logical 1 or 0 false
how do you convert double precision to single precision data
x = single(assignment_name);
what function returns the attributes of variable x in a structure
the ‘whos’ function
How do you create an unsigned integer
uint8/16/32/64(variable)
How can you check if a variable is x number of bits and whether its uint or int
You ask they ‘whos’ they are?