• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Odd MATLAB plot

polarmystery

Diamond Member
Hey guys,

Quick question. Would anyone know why my MATLAB decided to take the end points of my 3-d graph and attach them to the beginning of their curves. I made a function and sent the files to my colleague and professor and on their machines the plot comes out correct, whereas mine does not. The file is exactly the same on each machine, and same version of MATLAB. Thoughts?

Colleague's machine:
Colleague_computer.png


Professor's machine:
professor.png


My machine:
Mycomputer.PNG
 
Have you compared the code side-by-side from yours and your college's. Your college's is the same as your prof's.
 
I've had the problem that you are describing on my computer. In the end, I believe that the problem can be traced back to the video card drivers.

One "solution" is to use surf instead of mesh and then make the edge lines invisible as described here:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/283032

In my case, I think the problem went away after I installed a the "non-performance" version of the NVidia drivers for my graphics card.
 
Have you compared the code side-by-side from yours and your college's. Your college's is the same as your prof's.

Files are identical, I sent my same file to two different people and they simple hit F5 to run it...


I've had the problem that you are describing on my computer. In the end, I believe that the problem can be traced back to the video card drivers.

One "solution" is to use surf instead of mesh and then make the edge lines invisible as described here:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/283032

In my case, I think the problem went away after I installed a the "non-performance" version of the NVidia drivers for my graphics card.

I tried installing a new video card driver (the OEM non-performance one) and still got the lines. I think you might be right though, but I have no way of knowing for sure.
 
Back
Top