필터 지우기
필터 지우기

Changing array size with for-loops and interp1()

조회 수: 1 (최근 30일)
Quan Seah
Quan Seah 2018년 5월 22일
답변: KSSV 2018년 5월 22일
Hi!
I want to use for-loops and interpolation to change the array size. For example, I imported a picture into MATLAB that has an array of 512x512, and I want to change both the columns and rows so that the image size increase. Let's say I want to double the size of the picture so that the array would look something like 1024x1024. Please help, I am not sure how and where exactly should I start the code.

답변 (1개)

KSSV
KSSV 2018년 5월 22일
You can use imresize to achieve what you want. If you are adamant about using interp1, have a look on this link:

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by