error using zeros in matlab
显示 更早的评论
er = zeros(1, .125*N); % eigth rest
qr = zeros(1, .25*N); % quarter rest
hr = zeros(1, .5*N); % half rest
tr = zeros(1, .75*N); % three-quarter rest
wr = zeros(1, N); % whole rest
Error using zeros
Size inputs must be integers.
Error in pleasework (line 49)
er = zeros(1, .125*N); % eigth rest
>>
回答(1 个)
Image Analyst
2015-12-11
0 个投票
.125*N is not an exact integer. Try round(0.125 * N) instead.
类别
在 帮助中心 和 File Exchange 中查找有关 Numeric Solvers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!