📄 repeat1.m
字号:
% repeat1.m
% repeated value creation and counting
%x = [3 2 0 5 6]; % data to repeat
%n = [2 0 3 1 2]; % repeat counts
y = [];
for i=1:length(x)
y = [y repmat(x(i),1,n(i))];
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -