Jor*_*ren 2 matlab image-processing
我已经设法在Matlab中使用创建红色,绿色和蓝色噪声imagesc(cat(3,zeros(10,20),rand(10,20),zeros(10,20))).我现在正试图将各种颜色组合成黄色.但是,当我添加多个rand一起来的cat,这两个颜色出现.我该如何解决这个问题?
对于黄色,在R和G组件中使用相同的值:
imagesc(cat(3,repmat(rand(10,20),[1,1,2]),zeros(10,20)))
Run Code Online (Sandbox Code Playgroud)