This is a section of my program where I display the top 5 values for steel sections (from a manually inputted list of values), and then gives an options to select one of the sections to move on to further calculations.
How can I create the table to list the options 1-5, and then use the disp function to input a 1-5 number which will select the corresponding value?
Also, I have tried using the disp function and just typing in the full section but for some reason it gives a different Resistance value to the corresponding section in the list. Any thoughts?
crossSectionInfo = sortrows( crossSectionInfo, 'Resistance' );
bestCrossSectionIndex = find( crossSectionInfo.Resistance > Mr, 5, 'first');
disp( crossSectionInfo(bestCrossSectionIndex,:) )
result = input('Which steel section would you like to select?:','s');
disp( 'Value is');