Fplot Octave

Posted : admin On 4/14/2022
  1. Parametric Plot Octave
Bode plot octaveContour

Octave can plot a function from a function handle or string defining the function without the user needing to explicitly create the data to be plotted. The function fplot also generates two-dimensional plots with linear axes using a function name and limits for the range of the x-coordinate instead of the x and y data.

Fplot OctaveFplot Octave

> --- On Tue, 2013/7/16, martine1212 wrote:
>
>> According to the help menu...
>>
>> — Function File: print ()
>> — Function File: print (options)
>> — Function File: print (filename, options)
>> — Function File: print (h, filename, options)
>>
>> Using the last one in my program
>>
>> print(H1, 'dummy.pdf', -landscape);
>>
>> print (h1, 'dummy.pdf', -landscape)
>> ?? error?? landscape
>> error: `landscape' undefined near line 69 column 26
>> error: evaluating argument list element number 3
>>
>> ok try putting '-landscape'
>>
>> print (h1, 'dummy.pdf', '-landscape')
>> error: strtrim: S argument must be a string or cellstring
>> error: called from:
>> error: /usr/share/octave/3.6.3/m/strings/strtrim.m at line 71, column 5
>> error: /usr/share/octave/3.6.3/m/plot/private/__print_parse_opts__.m at
>> line 78, column 9
>> error: /usr/share/octave/3.6.3/m/plot/print.m at line 260, column 8
>>
>> ok, how does it work??
>>
>> This works (but it does not follow the published format)
>>
>> print -landscape dummy.pdf
>>
>> but how do I tell to print h1
>>
>
> The below worked for me (octave 3.6.4 MSVC)
>
> figure(2);
> fplot ('sin', [0, 2*pi]);
> print(2, 'dummy.pdf', '-landscape');
>

Parametric Plot Octave

  1. Fplot(,LineSpec) specifies the line style, marker symbol, and line color.For example, '-r' plots a red line. Use this option after any of the input argument combinations in the previous syntaxes.
  2. This is tutorial looking at how to use the main graphing function Octave provides. All Links and Slides will be in the description. Subscribe for more cool s.