mirror of
https://github.com/eddyem/lectures.git
synced 2025-12-06 18:45:18 +03:00
6 lines
190 B
Matlab
6 lines
190 B
Matlab
function C = checkX(x)
|
|
if(x < -5) C = sprintf("%d less than -5\n", x);
|
|
elseif (x > 5) C = sprintf("%d more than 5\n", x);
|
|
else C = sprintf("%d between -5 and 5\n", x);
|
|
endif;
|
|
endfunction |