octave-gui

How to run Octave code without the Octave IDE (similarly to Python)? [duplicate]

佐手、 提交于 2021-02-08 09:50:29
问题 This question already has answers here : Octave: How to prevent plot window from closing itself? (2 answers) Closed 2 days ago . Context: When I use Python + matplotlib, I can compose the code in any text editor (like Sublime Text), do CTRL + B , and then the text output appears in the "Build results" panel of the text editor, and, optionally, graph/plots are rendered in a new GUI window. Under the hood, the text editor calls python myscript.py when we do "Build", and that's it. It's simple

How to correctly calculate a nonlinear function and plot its graph in Octave?

给你一囗甜甜゛ 提交于 2021-01-29 22:22:11
问题 Goal: Plot the graph using a non-linear function. Function and graph This is my first time working at Octave. To plot the graph, I need to calculate a function in the range Fx (0.1 ... 10). I tried to implement this by looping the function through the for loop, writing the results to an array (x-axis - Fn, y-axis - function value), then loading the arrays into the plot() function. Fn = 1 Ln = 5 Q = 0.5 function retval = test (Fn, Ln, Q) # Fn squared (for common used) Fn = Fn^2 # Node A + Node