Function Input in command window
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am currently attempting to write a function that loops an input of another function. The main function is not mine, and is very long and complicated so I am trying to write a function to open this function and enter the inputs everytime with one input changed. The problem is that the function inputs are inputed in order in the command window so I can open the function in a script but I do not know how to enter the inputs. The function name is Tornado so I can write that in a script to open in.
Here is the code printed to the command window when that script is run:
Input operations.
[1]. Aircraft geometry setup
[2]. Flight condition setup
[3]. Change rudder setting
[4]. Move reference point
Lattice operations.
[5]. Generate lattice.
Computation operations.
[6]. Processor access
Post processing and interactive operations.
[7]. Post processing, Result/Plot functions
[8]. Keyboard access
Auxiliary operations.
[10]. About / Release Info
[100]. Help files
[0]. Exit Tornado
Please enter choice from above:
I attempted to just write in the new script:
Tornado
1
to try and enter the 1st option in the function. I then want to continue to enter inputs in this way. Any help would be appriciated, thank you.
11 Kommentare
dpb
am 30 Mai 2022
Bearbeitet: dpb
am 30 Mai 2022
I've not looked at the code at all; I'd suggest given the above about batch mode you delve into the product to find out just what that implies/allows.
Surely there's a user community -- the author seems to still be actively supporting the product either as a side hustle or as his main occupation; there's the place to go for the real skinny.
Here, unless someone who is also a user just happens to see your Q?, there's nobody routinely here that has any experience with the product and it is a forum specifically on how to use MATLAB, not another application that happens to have been built using MATLAB. Also remember this is an all-volunteer forum.
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!