جزاك الله خيرا يا mts بس أنا لما جيت أستدعى ال m file كتبت load Sharaf6.m و Sharaf6 هو الاسم و لما عملت run البرنامج طلع فيه خطأ يا ترى صيغة استدعاء ال m file صحيحة و إذا كانت خطأ … يا ريت ابعتلى الصيغة الصح
للأسف أنا لسه بأعانى من مشاكل مع البرنامج … على العموم ده الكود اللى كتبته
a=input('enter first number ')
b=input('enter second ')
sum =a+b
c=input('Do you want to perform another operation???(y/n) ')
switch c
case 'y’
Sharaf7
case 'n’
end
وده الملف Sharaf7
x=input('enter first number ')
z=input('enter second ')
sum =a+b
c=input('Do you want to perform another operation???(y/n) ')
switch c
case 'y’
Sharaf6
case 'n’
end
"you must put sharaf5,6… in work folder under matlab folder ,or creat a new folder and add this new folder in the "set path
you can also make the main of your program in a matlab function and you can tell it any time you want
help function