Plot 3D matrix
이전 댓글 표시
I have a 3D matrix containing values of potential between two charges for every x,y and z value so that I can find out the potential at any point by inputting three coordinates. The problem I'm having is I am unable to plot a 3D surface plot showing the potential.
I try and use surf() but the error says the value must be scalar, vector or numerical. I do have 2 inf values where the two charges lie, is this whats causing the problem and if so how do I get around it?
댓글 수: 6
madhan ravi
2018년 11월 6일
편집: madhan ravi
2018년 11월 6일
upload your datas by attaching the data file
James
2018년 11월 6일
Jan
2018년 11월 6일
Please post the code and a copy of the complete error message.
James
2018년 11월 9일
Jan
2018년 11월 9일
If you mention, that you get an error, please post a copy of the complete message. It is not possible that there is "another error", because Matlab stops at the first error already. "saying data dimensions dont agree" is less useful than a copy of the message, because then the readers do not have to guess in which line the error occurs.
Please post the relevant part of the code and a copy of the error message.
James
2018년 11월 9일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!