필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Error in size inputs scalar

조회 수: 1 (최근 30일)
Hege
Hege 2020년 7월 25일
마감: madhan ravi 2020년 7월 25일
can somebody tell me why I am getting an error called' Error using zeros. Size inputs must be scalar' for the below first code.
x=5:1:15;
y=5:1:15;
z=5:1:15;
B=zeros(x,y,z);
And If Give the inputs like below no errors.But I want to simplify the code.
x=5,6,7,8,9,10,11,12,13,14,15;
y=5,6,7,8,9,10,11,12,13,14,15;
z=5,6,7,8,9,10,11,12,13,14,15;
B=zeros(x,y,z);

답변 (0개)

이 질문은 마감되었습니다.

태그

제품


릴리스

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by