Question
MATLAB I can't switch the color of blue from left corner to right corner. -----------------------SCRIPT--------------------------------- clc;clear;close all; RED = meshgrid(1:256); image(:,:,3) = rot90((RED)/256); % the
MATLAB
I can't switch the color of blue from left corner to right corner.
-----------------------SCRIPT---------------------------------
clc;clear;close all;
RED = meshgrid(1:256); image(:,:,3) = rot90((RED)/256); % the above two lines specify the layout of the values of RED
GREEN = (fliplr(meshgrid(1:256)) - (rot90(meshgrid(1:256)))); image(:,:,1) = GREEN/256; % the above two lines specify the layout of the values of GREEN
BLUE = meshgrid(1:256); image(:,:,2) = BLUE/256; % the above two lines specify the layout of the values of BLUE
imshow(image) % present the image
set(gca,'Position',[0 0 1 1]) % gca Get handle to current axis. % set the image in a viewable size. % The only combination to work is [0 0 1 1], everything else would just % show a blank gray box.
--------------------------------------------------------------------
Need to look like this image
This time, the corners are (clockwise from the top left) purple, blue, green and red. The intermediate points are once again smoothly shaded from one end to the other There is smoothness both horizontally and vertically, but NOT diagonally (see theStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started