Question

matlab keep ignoring negative values when i plot the data.... what should i do to plot...

matlab keep ignoring negative values when i plot the data....

what should i do to plot negative numbers...

Homework Answers

Answer #1

Here is one of the example to plot the negative value, I used "axis" function.

tt = -0.00025:0.00001:0.00025;// setting the time axis
y1 = 20*cos(2*pi*(2000)*(tt -37.2/10));//one of the function
tt = -0.00025:0.00001:0.00025;// setting the time axis
y2 = 14*cos(2*pi*(4000)*(tt +41.3/10));//
y3= y1+y2;//An operation on signal
subplot(3,1,1)
plot(tt,y1)
title('Y1')
xlabel('Time')
axis([min(tt) max(tt)    ylim])
subplot(3,1,2)
plot(tt,y2)
title('Y2')
xlabel('Time')
axis([min(tt) max(tt)    ylim])
subplot(3,1,3)
plot(tt,y3)
title('Y3')
xlabel('Time')
axis([min(tt) max(tt)    ylim])
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
The following sample observations were randomly selected. (Do not round the intermediate values. Negative amount should...
The following sample observations were randomly selected. (Do not round the intermediate values. Negative amount should be indicated by a minus sign. Round your answers to 3 decimal places.) X: 6,5,3,6,10 Y: 6,6,4,7,7 a. Determine the 0.95 confidence interval for the mean predicted when x = 9. b. Determine the 0.95 prediction interval for an individual predicted when x = 9.
I am to create a scatter plot with two sets of data (there is a lot...
I am to create a scatter plot with two sets of data (there is a lot more data than what is posted below but the whole data set was too large to post).  I am then to complete a Pearson R test for significance and test for goodness of fit using R2. How do I create a scatter plot with the data? How do I complete the required tests of the data?   Score # BSN Pearson r 536.17 5 T .DIST...
The following sample observations were randomly selected. (Do not round the intermediate values. Negative amount should...
The following sample observations were randomly selected. (Do not round the intermediate values. Negative amount should be indicated by a minus sign. Round your answers to 3 decimal places.) X: 5 5 2 6 10 Y: 4 6 5 5 7    Determine the 0.99 confidence interval for the mean predicted when x = 7.
Could you please explain me why an when do I have to use the negative binomial...
Could you please explain me why an when do I have to use the negative binomial distribution for Problem 15 in chapter 2 (rice- mathematical statistics and Data Analysis 3rd Edition). I wanted to use the normal binomial distribution but I come to the wrong results....
The following sample observations were randomly selected. (Do not round the intermediate values. Negative amount should...
The following sample observations were randomly selected. (Do not round the intermediate values. Negative amount should be indicated by a minus sign. Round your answers to 3 decimal places.) x y 6 4 4 6 1 5 6 4 10 9 Determine the 0.90 confidence interval for the mean predicted when x = 8. Determine the 0.90 prediction interval for an individual predicted when x = 8.
how should i run my data when i have 4 categories under 1 policy. should i...
how should i run my data when i have 4 categories under 1 policy. should i use dummy variable for each categories or should i average the 4 categories. this is my model export = β + β1adoption rate + β2 policy
how should i run my data when i have 4 categories under 1 policy. should i...
how should i run my data when i have 4 categories under 1 policy. should i use dummy variable for each categories or should i average the 4 categories. this is my model export = β + β1adoption rate + β2 policy
2. Expected Values: a) What is the formula for Expect[X] for some data set X, when...
2. Expected Values: a) What is the formula for Expect[X] for some data set X, when X is continuous and when X is discrete? b) Must an expected value of a data set be an element of that set? Why or why not? c) How is the expected value similar to or different from other measures of center such as the median or mode? d) What is the difference between theoretical expected values and experimental (sample) means? i. When is...
What equations and statements should be used for this problem? Do I select any hypothesis I...
What equations and statements should be used for this problem? Do I select any hypothesis I want? How do I phrase the hypothesis and write the equations? If I have data, what makes the hypothesis true or false? 1) Conduct hypothesis test by comparing monthly average between the two year 2) Within each year, run a appropriate hypothesis comparing June and August.
Suppose that you follow a population over time. When you plot your data on a semilog...
Suppose that you follow a population over time. When you plot your data on a semilog plot (using logs with base 10), a straight line with slope 0.21 results. Furthermore, assume that the population size at time 0 was 50. What function best describes the population size at time t? Population at time t is ________________ (simplify as much as you can, there should be no logs in answer)