how to expand a matrix size
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Azzi Abdelmalek
2013-9-20
编辑:Azzi Abdelmalek
2013-9-20
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)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!