MATLAB CODE:
x=input('Enter the array:');
y=input('Enter the position:');
z=input('Enter the number to be inserted:');
b=[];
for i=1:(y-1)
b(i)=x(i);
end
b(y)=z;
for i=(y+1):(length(x)+1)
b(i)=x(i-1);
end
disp(b);
Check the complete note in the following link:
https://www.matlabcoding.com/2019/05/...
Sur cette page du site, vous pouvez voir la vidéo en ligne Inserting an element in an array in a particular position | MATLAB & JAVA durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Knowledge Amplifier 29 mai 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 785 fois et il a aimé 5 téléspectateurs. Bon visionnage!