imax=100; map = jet(imax); ph = plot3(1,0,0,'b.','EraseMode','none','MarkerSize',8); axis([-2 2 -2 2 0 1]) axis('square') xlabel('x') ylabel('y') for i =1:imax, set(ph,'xdata',cos(2*pi*i/imax),'ydata',sin(2*pi*i/imax),'zdata',i/imax,'markerEdgeColor',map(i,:)); % pause drawnow end
The plot should show a continuously growing spiral, but instead it refreshes at random points in the loop. This happens even when the "pause" statement is uncommented.
A bug in MATLAB affects how the MarkerEdgeColor
property handles color transitions between blue and cyan. Our development team is currently investigating this issue.
Switching to any colormap that avoids blue/cyan or cyan/blue transitions (such as pink, hot, cool, spring, or flag) resolves the problem.
To avoid this bug, do not change the MarkerEdgeColor
property. Keeping this property constant ensures that the EraseMode
functions correctly.
This advice can help you avoid issues with color transitions in MATLAB plots.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.