![]() ![]() GNU gives Octave commands interfacing to solve nonlinear and linear numeric problems and perform other mathematical analyses utilizing a language that is compatible with MATLAB programming. f(x) = y_" (see attached file "fig1.eps"). Octave GUI is a Graphical User Interface that can be utilized for the high-level language GNU Octave. However, when I try to save the figure with either the "print" or "saveas" functions for pdf or eps formats, only the random data (coloured markers) is kept and the yaxis label is displayed as: "f(x) = y. The formatting of the y-axis label is also displayed as desired" "f(x) = y, f(x) = y rand". The plot is correctly generated by the GNU interface as showed by the screenshot on the attached file "fig1_correct". This document will attempt to point out signicant dierences needed for GNU Octave code compared to the MATLAB code of the text Numerical Methods: Design, Analysis, and Computer Implementation of Algorithms, byAnneGreenbaum&TimothyP.Chartier. On each step of the for loop, a subplot is generated, which contains: (a) original data (y) illustrated as a solid line (b) random data (y + i*err) illustrated as coloured markers. to Octave) and Chapter 2 (Getting Started) of the Octave Documentation constituteanverynicetutorial. ![]() ![]() We have the independent variable x = (0:1:20), and y = f(x) = 2*x.Īfter defining the variables, a for loop goes from i = 1:4, and each time a random number vector (err) is generated with the randn function. To illustrate this issue, I have generated the sample code on the attached f1.m file. Greetings everyone, I am relatively new to Octave, and I am having trouble saving a figure, consisting of a set of subplots generated with "for" loops. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |