Question

USING MATLAB Create a grayscale art image 1000px x 1000px using MATLAB. You must implement the...

USING MATLAB

Create a grayscale art image 1000px x 1000px using MATLAB. You must implement the use of grey scale. Be creative. You can earn up to 5 additional points.

Homework Answers

Answer #1

1)
%-------------The program is to fade the image as it move from left corner
%to right corner of the image. Left corner has 0 grayscale value(black) and right
%corner has 1 gray scale value(white)
clc
clear all
close all
size=1000;
pic=[];
p=0;q=0;
for m=1:size
for n=1:size
pic(m,n)=sqrt(((m/1000-p)^2+(n/1000-q)^2)/2);  
end
end
imshow(pic)
title('fading out grey scale image')

2)

clc
clear all
close all
pic=magic(1000); %It creates a magic square matrix with the range of 1 to 2^n
imagesc(pic) %Scales the image data to the full range of current colormap
colormap(gray(256)) % set the color to gray scale range of 0 to 255
axis equal %Equal axis in both x and y direction

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Using MATLAB: 1) Create three variables to hold the amplitude, phase shift, and number of cycles...
Using MATLAB: 1) Create three variables to hold the amplitude, phase shift, and number of cycles for your sinusoid. 2) Create a sinusoid that has 100,000 points with the amplitude, phase shift, and number of cycles specified in the variables. 3) Generate three test sinusoids: Amplitude = 5, Phase = pi/2, cycles = 5 Amplitude = 0.7, Phase = 0, cycles = 10 Amplitude = 8, Phase = -2pi/3, cycles = 4 Can someone help me with the exact formula...
Matlab Create plot of the following density functions using x values between -10 and 10 with...
Matlab Create plot of the following density functions using x values between -10 and 10 with an increment of 0.02 -Normal cumulative distribution function with mu=1, sigma=1, mu=0, sigma=2, mu=0,sigma=1/2
USING MATLAB Create a series of if/elseif statements that check which coin is entered, and sets...
USING MATLAB Create a series of if/elseif statements that check which coin is entered, and sets the variable value to be the correct value of the coin. The following are the cases to consider: If coin equals ‘q’, then value equals 25 If coin equals ‘d’, then value equals 10 If coin equals ‘n’, then value equals 5 If coin equals ‘p’, then value equals 1 Otherwise, if the coin is none of the above, add a default else statement...
Show all steps please Using Matlab: Generate a random signal ‘x’ with a length of 8000...
Show all steps please Using Matlab: Generate a random signal ‘x’ with a length of 8000 and sampling rate of 8kHz. Plot a section of the signal In the time domain. Is it possible to observe significant trends in the time domain signal? Plot the magnitude of the DFT of segments of ‘x’ of different lengths. Use a decibel scale for the vertical axis. What do you observe as the segment length increases? Use the Matlab function ‘periodogram’ to obtain...
Using Matlab, evaluate ? = (? + 10) (?^5 + 1) for values of x in...
Using Matlab, evaluate ? = (? + 10) (?^5 + 1) for values of x in the range of -1 to 1 in step sizes of 0.1. Hence, plot y versus x. Could you also include the Matlab code and the associated screenshots?
In MATLAB, generate a 3D plot as follows: Create 2 vectors x and y, both ranging...
In MATLAB, generate a 3D plot as follows: Create 2 vectors x and y, both ranging from -5 to 5 with interval of 0.05 using linspace or colon operator. Generate grid of values X and Y using the vectors x and y. Define the variable Z as follows: Z = 2X3 + 4Y2 + 7 +sinX3 + Y2 Generate a surface and a mesh plot with the variables X,Y,Z. Show your plots.
Using pulse width modulation and interrupts create a code in adruino where you will push a...
Using pulse width modulation and interrupts create a code in adruino where you will push a button on the MCU which triggers an interrupt. Once triggered, the LED on the development board must fade-in (min to max intensity) for 2 seconds, stay at maximum brightness for 5 seconds, and then fade-out (max brightness to off) with a duration again of two seconds. cannot make use of "delay" or equivalent routines to implement the 2 or 5 second intervals but must...
For this problem, you must create a table of values for x in [−1, 1] with...
For this problem, you must create a table of values for x in [−1, 1] with a separation of h = 0.02 for the function f(x) = x5 − 0.36x3 + .2563. Then create the table for the approximate f′(x), as in the example problem. Make sure to format the cells as Number so values appear correctly. For the cells in columns B and C, use decimal numbers with 6 places. Once the table is created, make the scatterplot that...
Create a list of three (3) recommendations that you believe One Pharmacy needs to implement to...
Create a list of three (3) recommendations that you believe One Pharmacy needs to implement to avoid any further complaints from your customers. Your recommendations must include the use of business technology and/or online services. Remember, your resources and budget are very tight, therefore your recommendations need to include practical strategies that do not require a great deal of money or additional resources. Refer to the One Pharmacy policies and procedures provided in your handouts to assist you.
Create a list of three (3) recommendations that you believe One Pharmacy needs to implement to...
Create a list of three (3) recommendations that you believe One Pharmacy needs to implement to avoid any further complaints from your customers. Your recommendations must include the use of business technology and/or online services. Remember, your resources and budget are very tight, therefore your recommendations need to include practical strategies that do not require a great deal of money or additional resources. Refer to the One Pharmacy policies and procedures provided in your handouts to assist you.