untitled.m 501 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. clear all
  2. %%
  3. load('GradientMap_03_06.mat');
  4. aa = zeros(size(GM.x));
  5. aa( GM.x > 40 & GM.y > 0 ) = 1.3;
  6. aa( GM.x > 40 & GM.y <= 0 ) = -1.3;
  7. figure;
  8. imagesc(aa);
  9. colorbar
  10. %%
  11. r = 0.01;
  12. [aa_x, aa_y] = pol2cart(aa, r*ones(size(aa)));
  13. GM.px = aa_x;
  14. GM.py = aa_y;
  15. %%
  16. figure('color', 'w', 'position', [200, 200, 1200, 500])
  17. subplot(1, 2, 1);
  18. imagesc(aa_x);
  19. colorbar
  20. title('aa x')
  21. subplot(1, 2, 2);
  22. imagesc(aa_y);
  23. colorbar
  24. title('aa y')
  25. clear aa aa_x aa_y
  26. %%
  27. save( 'GradientMap_Pepo_Pyramidal.mat' );