Filter löschen
Filter löschen

Changing array size with for-loops and interp1()

1 Ansicht (letzte 30 Tage)
Quan Seah
Quan Seah am 22 Mai 2018
Beantwortet: KSSV am 22 Mai 2018
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.

Antworten (1)

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

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by