Skip to content

Commit

Permalink
Update interpColormap.m
Browse files Browse the repository at this point in the history
  • Loading branch information
ranzhengcode authored Jul 30, 2022
1 parent 161f177 commit 3dca3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drawing/interpColormap.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function [cOut,colorm] = interpColormap(cmap,N)

if ischar(cmap)
cmap = colormap(cmap);
cmap = colormapdata(cmap);
end

lenc = length(cmap);
Expand All @@ -11,4 +11,4 @@

cimg = zeros(1,N,3);
cimg(1,:,:) = cOut;
colorm = repmat(cimg,32,1,1);
colorm = repmat(cimg,32,1,1);

0 comments on commit 3dca3db

Please sign in to comment.