?? myrandint.m
字號:
function y = myrandint(MaxInt,m,n)
%function y = myrandint(MaxInt,m,n)
% This functions creates random numbers between [1 MaxInt] (1 itself and MaxInt itself)
if nargin == 1
y = ceil(rand*MaxInt);
elseif nargin == 3
y = ceil(rand(m,n)*MaxInt);
else
warning('Incorrect Number of Inputs');
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -