Hi Everyone. Ive created a set of questions for user to select the material characteristics based on their preferences and need help to choose best results best on their ans
Afficher commentaires plus anciens
Below is the coding. i want to show user which material between is the best based on average answer. Kindly need your help.
x=input('enter required strength /10 =');
if x>0 && x<=5
save ('AS')
save ('AA')
elseif x>5 && x<=8
save ('PL')
elseif x>8 && x<=10
save ('PC')
end
t=input('choose hardness 75/80/90/100 =');
if t==75
save('PL')
elseif t==80
save('PC')
elseif t==90
save('AA')
elseif t==100
save('AS')
end
reply=input('enter expected finishing low-med-high : ','s');
if strcmp(reply,'low')
save('AS')
elseif strcmp(reply,'med')
save('PC and PL')
elseif strcmp(reply,'high')
save('AA')
end
4 commentaires
Rik
le 28 Déc 2022
What are you expecting to happen with those save calls? What do you want to happen? How would you design the system with pen and paper?
Muhammad Ammar Fiqri Bin Johari Johari
le 30 Déc 2022
Rik
le 30 Déc 2022
And how would you solve this with pen and paper? Would you have some sort of points system so at the end you can select the option with the most points?
You need to do something in each branch that you can keep track of. Presumably that is what you intended with the save calls. The save calls resulted in the creation of mat files. What could you replace that with? Based on a set of answers, how do you want to determine the best?
Muhammad Ammar Fiqri Bin Johari Johari
le 30 Déc 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!