how to expand a matrix size

2 visualizaciones (últimos 30 días)
andrew
andrew el 20 de Sept. de 2013
I have a data with a matrix size of 258x1 and I need it to be how 6204x1 matrix. How do I expand the matrix to become a 6204x1 matrix?
  1 comentario
Sean de Wolski
Sean de Wolski el 20 de Sept. de 2013
Well how do you plan to get the other 6000ish elements? What are they?

Iniciar sesión para comentar.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Sept. de 2013
Editada: Azzi Abdelmalek el 20 de Sept. de 2013
You can use interp1
%%example
n=1:258
data=sin(0.1*n)
figure;
plot(n,data);
ni=linspace(1,258,6204);
datai=interp1(n,data,ni)
figure;
plot(ni,datai)

Community Treasure Hunt

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

Start Hunting!

Translated by