How to bring signals of uneven sizes to the same size?

2 vues (au cours des 30 derniers jours)
JAI
JAI le 21 Avr 2013
I have 3 signals, size(x)=15001 size(y)=7500 size(z)=3751
and how to bring the sizes of all these three signals to 15000?
  1 commentaire
Azzi Abdelmalek
Azzi Abdelmalek le 21 Avr 2013
Modifié(e) : Azzi Abdelmalek le 21 Avr 2013
By adding or removing what?

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 21 Avr 2013
x(end)=[];
y(end+1:15000)=0;
z(end+1:15000)=0;
  1 commentaire
JAI
JAI le 22 Avr 2013
Thank you so much sir,It worked!!!!

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 21 Avr 2013
newx = interp1(linspace(0,1,length(x)), x, linspace(0,1,15000));
newy = interp1(linspace(0,1,length(y)), y, linspace(0,1,15000));
newz = interp1(linspace(0,1,length(z)), z, linspace(0,1,15000));
  1 commentaire
JAI
JAI le 22 Avr 2013
Thank you so much sir.It worked!!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by