Warning: Matrix is singular to working precision.
이전 댓글 표시
This is my code and I keep getting the error "Warning: Matrix is singular to working precision." I am getting extremely frustrated because i looked up the problem and my code seems to be correct but i am new to this so i could be missing something. Any help would be appreciated! Thank you! :)
x=(-pi:pi/10:pi);
y=(-pi:pi/10:pi);
[X,Y]=meshgrid(x,y)
Z=(sin(sqrt(X.^2+Y.^2)))/(sqrt(X.^2+Y.^2));
mesh(X,Y,Z)
xlabel('x-axis')
ylabel('y-axis')
zlabel('z-axis')
채택된 답변
추가 답변 (1개)
Ed Herrera
2017년 4월 21일
0 개 추천
Many Thanks It was really useful.
댓글 수: 1
Redouane Boudjemaa
2019년 10월 27일
Thak you, it did the trick
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!