Incorrect number of inputs or outputs for function linspace

조회 수: 2 (최근 30일)
Tanveer Islam
Tanveer Islam 2023년 6월 5일
댓글: Torsten 2023년 6월 5일
  댓글 수: 8
Torsten
Torsten 2023년 6월 5일
You should follow Walter's advice.

댓글을 달려면 로그인하십시오.

답변 (1개)

chicken vector
chicken vector 2023년 6월 5일
Even if it is a matter of personal taste, for unit steps I usually prefer to do:
z1 = 1 : 100;
Nontheless, this should also work:
z2 = linspace(1, 100);
isequal(z1, z2)
ans = logical
1
Are you sure didn't create a function called linspace?
Have you tried to reset the path and clear the Workspace?
Try to restart Matlab and run it again.

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by