Guest User

Untitled

a guest
Aug 12th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. MATLAB 4D (3d color) plot with animation
  2. X=1:30;Y=randperm(30);Z=ones(size(X));
  3. voltage_matrix = ...; %# 30 by 133
  4. cdata = voltage_matrix;
  5. handle = scatter3(X,Y,Z);
  6.  
  7. colormap('jet')
  8. set(gca,'clim',[min(voltage_matrix) max(voltage_matrix)])
  9.  
  10. for t=1:size(cdata,2) %# 1 to 133
  11. set(handle, 'cdata', cdata(:,t));
  12. pause(.1)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment