Question

Perform Zooming to the particular portion of the image through figure window in Matlab. Specify each program lines of Matlab

0 0
Add a comment Improve this question Transcribed image text
Answer #1

t = linspace(0,2*pi,1000); % values in time

x = cos(t); % a sinusoid

perturbation = 0.1*exp((-(t-5*pi/4).^2)/.01).*sin(200*t); % a perturbation

signal = x+perturbation; % a signal to plot

% plot signal on new figure

figure,plot(t,x+perturbation)

xlabel('time'),ylabel('signal')

% create a new pair of axes inside current figure

axes('position',[.65 .175 .25 .25])

box on % put box around new pair of axes

indexOfInterest = (t < 11*pi/8) & (t > 9*pi/8); % range of t near perturbation

plot(t(indexOfInterest),signal(indexOfInterest)) % plot on new axes

axis tight

Add a comment
Know the answer?
Add Answer to:
Perform Zooming to the particular portion of the image through figure window in Matlab. Specify each program lines of Matlab with appropriate comments.(25 Marks) 4. Perform Zooming to the partic...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have...

    The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have been placed above a conveyer belt to enables parts on the belt to be photographed and analyzed. You are to augment the system that has been put in place by writing C code to detect the number of parts on the belt, and the positions of each object. The process by which you will do this is called Connected Component Labeling (CCL). These positions...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT