Have 3 edit fields, one for each ban. The user can type into it. If you're using GUIDE, you can do
band1 = str2double(handles.edtBand1.String);
band2 = str2double(handles.edtBand2.String);
band3 = str2double(handles.edtBand3.String);
bandsToUse = [band1, band2, band3];
multiBandImage = multibandread('paris.lan', [512, 512, 7], 'uint8=>uint8',...
128, 'bil', 'ieee-le', {'Band','Direct',bandsToUse });
imshow(multiBandImage)
Best Answer