Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MATLAB 4D (3d color) plot with animation
- X=1:30;Y=randperm(30);Z=ones(size(X));
- voltage_matrix = ...; %# 30 by 133
- cdata = voltage_matrix;
- handle = scatter3(X,Y,Z);
- colormap('jet')
- set(gca,'clim',[min(voltage_matrix) max(voltage_matrix)])
- for t=1:size(cdata,2) %# 1 to 133
- set(handle, 'cdata', cdata(:,t));
- pause(.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment