السلام عليكم اخوي المهندس ممكن تحل لي هالسؤال
write a program that input an array and splits it into to arrays, where the first array is odd and the other array is even
بالله ساعدني فيه هذا هوم وورك لازم اسلمه يوم الاحد ذا والله حاولت فيه ماقدرت اكتبه وعندي اختبارات الاسبوع ذا ياليت تساعدني
|
هذا الكود
%write a program that input an array and splits it into two arrays,
% where the first array is odd, and the other array is even
%1st Array
syms a
a=[1,3,5,7;2,4,6,8]
نسخ/لصق في الM-File
وهذا الجواب الي يطلع لك في ال Command Window
a =
1 3 5 7
2 4 6 8