已回答 How can I tell if this is stored as a vector?
Wow, thank you so much! I wouldn't have thought it would be as simple as taking off a semicolon & the output argument. I thought...
7 years 前 | 0
提问
Sum of row and column #?
Say I ask the user to input the size of a square matrices, n.
And say I want each element of this matrix to be the sum of the...
switch case and inequalities
So, say I wanted to disp('that's impossible') if a user enters an age over 150 or less than 0?
How could I do this for a swit...
7 years 前 | 2 个回答 | 0
2
个回答
提问
Why is this returning "logical 1"
This is my code:
userAge = input('How old are you?');
if userAge >0 && userAge <7
disp('Oh that''s so cute!')
...