important
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
disp('1 for comp1');disp('2 for comp2');disp('3 for comp3');disp('4 for comp4');disp('5 for comp5');disp('6 for comp6');disp('7 for comp7');
% in the above components I want to select components
nc = input('Input the components')
% for example nc = 3 , now after giving this each component has a value of a variable Tc, Pc, w associated with it , how can I assign particular variable values after selecting my components
2 Kommentare
Walter Roberson
am 4 Mai 2012
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
Walter Roberson
am 4 Mai 2012
Please use titles that give an indication of the content of the question being asked. I looked back over the Questions that you have asked, and you have often used titles that do not give any indication of the subject area. People tend to skip over Questions that have meaningless titles.
Antworten (1)
Walter Roberson
am 4 Mai 2012
Use "switch", or use a table of initial values that you index into.
2 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!