How can I change the x-axis limit of recovered signal so that it becomes equal to x axis limit of input sampled sequence?following plots are as follows?

1 view (last 30 days)

Accepted Answer

Mike Garrity
Mike Garrity on 3 Aug 2015
By default, the axis gets padded out to get nice round numbers for the ticks and make sure there are ticks at the ends. The command
axis tight
will get rid of the padding on both the X & Y axes. If you just want the X to be tight, then the following trick should work:
xlim([-inf inf])
  1 Comment
PRATIBHA WARKADE
PRATIBHA WARKADE on 3 Aug 2015
by putting the value of xlim([0 0.014]) my data of recovered signal gets clipped off, but I don't want to make this data luks as if I have clipped it.....actually I taken code for plotting input sampled signal as figure; t1=linspace(0,length(a)/Fs,length(a)); plot(t1,a); title('input sampled sequence'); where Fs=22050Hz and
For recovered signal: my code is: figure; reconst_data=(0.00006*reconst_data); t5=linspace(0,length(reconst_data)/Fs,length(reconst_data)); plot(t5,reconst_data); title('recovered signal'); My question is to what value I should divide 0.00006 to make the x-axis of recovered signal becomes equal to x-axis of input sampled sequence. length(a)=574,length(reconst_data)=11427.

Sign in to comment.

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!