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?
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.
MATLAB Create an M-File for this IVP, dy/dt = t^2 - 16*sin(t), y(0) = 0 and...
MATLAB Create an M-File for this IVP, dy/dt = t^2 - 16*sin(t), y(0) = 0 and create an anonymous function g so that it evaluates the slope field at points of our new ODE. Ensure you use commands of using a for loop to plot the exact solution for the IVP in this exercise as well as the Euler approximations for Δt=0.5, Δt=0.25, and Δt=0.125 all on the same graph.
Use Matlab to solve the following (a) Create a plot with a sphere at the center...
Use Matlab to solve the following (a) Create a plot with a sphere at the center of the graph (origin) representing the sun with a radius of 6955000 km. Make sure that the outside of the sphere is painted in ’autumn’ colors. (Hint: look up the sphere() function, the colormap() function, and the surf() function). (b) Create a variable t ranging from 0 to 2? with increments of 0.01. (c) The following Table gives you important values needed to compute...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT