Error using zeros "Size inputs must be integers"
이전 댓글 표시
Hi all,
I have a very bizarre problem with zeros. When typing:
zeros(10*(1-.7),1)
I get the following error:
Error using zeros
Size inputs must be integers.
Although using zeros(10*(.3),1) or zeros(10*(1-.6),1) doesn't cause any problem.
댓글 수: 1
Panali Pérez Reyes
2021년 6월 14일
Use the "round ()" function to make sure that the values you enter to the "zeros ()" command are integers.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!