codes in MATLAB loops, Cheat Sheet of Matlab skills

codes for beginners in MATLAB (loops)

Typology: Cheat Sheet

2025/2026

Uploaded on 04/22/2026

abdulrahman-abdulrahman-1
abdulrahman-abdulrahman-1 🇪🇬

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Task 7
1. Write a MATLAB program that takes two Matrixes from user ( M ,N ) ,print M*N if number of
column in M = number of row in N, print N*M if number of row in M = number of column in N.
2. Write a MATLAB program that print this sequence
1234
123
12
1
3. Write a MATLAB program that takes an Matrix of positive integers and displays an error
message if there is any zero or negative element.
4. Write a MATLAB program that print this sequence
1
12
123’
1234

Partial preview of the text

Download codes in MATLAB loops and more Cheat Sheet Matlab skills in PDF only on Docsity!

Task 7

  1. Write a MATLAB program that takes two Matrixes from user ( M ,N ) ,print MN if number of column in M = number of row in N, print NM if number of row in M = number of column in N.
  2. Write a MATLAB program that print this sequence 1234 123 12 1
  3. Write a MATLAB program that takes an Matrix of positive integers and displays an error message if there is any zero or negative element.
  4. Write a MATLAB program that print this sequence 1 12 123’ 1234