how to expand a matrix size
조회 수: 2 (최근 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!