Error using besselj. NU and Z must be the same size or one must be a scalar.
조회 수: 3 (최근 30일)
이전 댓글 표시
What is wrong with the following program?
Z = (0:0.2:9)';
NU = 0:5;
y = besselj(NU, Z); % Bessel function
plot(Z, y)
xlabel('Z');
ylabel('y');
title('y = besselj(NU, Z), for alpha = 0,1,2,3,4, and 5');
Output:
>> plotting
Error using besselj
NU and Z must be the same size or one must be a scalar.
Error in plotting (line 3)
y = besselj(NU, Z); % Bessel function
See:
Figure 3.6 Plotting the matrix y versus the vector x.
댓글 수: 0
채택된 답변
Steven Lord
2017년 1월 20일
That textbook was written quite some time ago. At the time it was written that syntax worked, but it was removed in release R2012b.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Bessel functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!