User Tools

Site Tools


matlab:matlab_helpful_hacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
matlab:matlab_helpful_hacks [2016/02/01 18:40] igorkaganmatlab:matlab_helpful_hacks [2017/05/24 18:34] igorkagan
Line 59: Line 59:
 ==== Maximize figure window ==== ==== Maximize figure window ====
 <code matlab>set(gcf,'units','normalized','outerposition',[0 0 1 1]);</code> <code matlab>set(gcf,'units','normalized','outerposition',[0 0 1 1]);</code>
 +
 +
 +
 +==== Plot an ''imagesc'' with transparent NaNs ====
 +
 +<code matlab>
 +h = imagesc(X,Y,C);
 +set(h,'alphadata',~isnan(C));
 +</code>
  
  
  
  
matlab/matlab_helpful_hacks.txt · Last modified: 2022/12/29 07:15 by 127.0.0.1