2- laboratoriya mashg’uloti Matrisalarning asosiy xarakteristikalarini xisoblash. I. Ishdan maqsad
Download 77.95 Kb. Pdf ko'rish
|
Lobaratoriya№1
V.
Ishni bajarish tartibi: Laboratoriya mashg’ulotida har bir talaba ilovada keltirilgan masalalarni Matlab\Simulink dasturida yechishi va yechimlarini hisobot shaklida topshirishi talab etiladi. Ilovadagi masalalar 1) RESHAPE – matrisa o’lchamini o’zgartiring : A=[-1 0 3 0; 0 1 2 -1; -4 -2 -3 2]; 2) Berilgan matritsaning diagonaildan yuqori qismini elementlarini 0 bilan almashtiring: A=[-1 2 4 0 3; -2 1 0 3 4; -2 -1 0 -2 1; -2 3 -1 -1 1; 1 1 1 -1 -1]; 3) Berilgan matritsaning diagonaildan pastkii qismini elementlarini 0 bilan almashtirish: A=[-6 2 4 4 3; -2 1 0 3 4; -2 -1 0 -2 1; -2 3 -1 -1 1; 1 8 1 -1 -1] 4) Berilgan matritsaning diagonaildan elementlarini 0 bilan almashtirish: A=[-2 2 4 0 3; -2 1 0 3 4; -2 -1 0 -2 1; -2 3 -1 -1 1; 1 5 1 -1 -1] 5) diag(A) komandasi berilgan matritsaning diagonalida tugan elementlarni ekranga chiqaring: A=[-1 0 1; 0 -1 0; 1 -1 1] 6) diag(A) komandasi berilgan matritsaning diagonalida tugan elementlarni ekranga chiqaring: A=[-3 5 1; 0 -1 0; 1 -6 1] 7) diag(A) komandasi berilgan matritsaning diagonalida tugan elementlarni ekranga chiqaring: A=[-1 5 1; 0 -8 0; 1 -1 1] 8) Berilgan matritsani soat strelkasiga qarshi 90 0 ga burish uchun ishlatiladigan rot90(A) komandasi: A=[-1 0 1; 0 -1 0; 1 -1 1] 9) Berilgan matritsani soat strelkasiga qarshi 45 0 ga burish uchun ishlatiladigan rot45(A) komandasi: A=[-1 0 1; 0 -1 0; 1 -1 1] 10) Berilgan matritsani soat strelkasiga qarshi 180 0 ga burish uchun ishlatiladigan rot180(A) komandasi: A=[-1 0 1; 0 -1 0; 1 -1 1] 11) Matlabda matritsalarni yuqoridan pastga burishda flipud komandasidan foydalanish: A=[-1 0 1; 0 -1 0; 1 -1 1] 12) Matlabda matritsalarni chapdan o’ngga burishda fliplr komandasidan foydalanish: A=[-1 0 1; 0 -1 0; 1 -1 1] 13) Matlabda matritsalarni o`ngdan chapga burishda fliplr komandasidan foydalanish: A=[-1 0 1; 0 -1 0; 1 -1 1] 14) Matlabda matritsalarni chapdan o’ngga burishda fliplr komandasidan foydalanish: A=[-7 0 1; 0 -4 0; 1 -1 3] 15) Matlabda matritsalarni chapdan o’ngga burishda fliplr komandasidan foydalanish: A=[-3 0 3; 0 -7 0; 1 -2 1] 16) A va B matritsalarni bir-biriga qo’shish A=[-1 0 1; 0 -1 0; 1 -1 1]; B=[1 1 0; 2 -1 0; 3 8 1]; 17) A va B matritsalarni bir-biriga qo’shish A=[-1 7 1; 0 -5 0; 1 2 1]; B=[4 1 7; 2 -5 0; 3 0 1]; 18) A va B matritsalarni bir-biriga ko`paytirish. A=[-1 7 1; 0 -5 0; 1 2 1]; B=[4 1 7; 2 -5 0; 3 0 1]; 19) A va B matritsalarni bir-biriga bo`lish. A=[-1 7 1; 0 -5 0; 1 2 1]; B=[4 1 7; 2 -5 0; 3 0 1]; 20) Matlab da for-loops va boshqa operatorlardan foydalanib n n o’lchamdagi ixtiѐriy A matrisaning ustunlarining yig’indisini hisoblovchi ustun_hisobi deb nomlangan m-faylni (m-file) yarating. |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2025
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling