Tricky Facts Flashcards
0
Q
Indentation for numbers versus characters
A
> > var = 3
var =
3
> > var = ‘3’
var =
3
1
Q
Default format is:
Format short
Format loose
A
Default type for integers is double
2
Q
Shift a string of characters
A
> > char (‘abcd’ + 1)
ans =
bcde
3
Q
> > disp(‘Hello’)
Hello
A
disp will automatically put prompt,»_space;, on next line