TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Octave

Octave inline command

Overview

In this tutorial, we will learn about the Octave inline command. Using the inline command we can define a mathematical function in Octave.

Note that this function is obsolete now, we can consider using anonymous functions. We will get the following error using the function.

warning: inline is obsolete; use anonymous functions i
instead

Syntax

>> inline (STR)
>> inline (STR, ARG1, …)

Examples

Let’s define a simple function using the inline command.

f(x) = 4x^2 – 5

>> % Define a function f(x) = 4*x^2 -5
>> f = inline(‘4*x^2 – 5′,’x’)
warning: inline is obsolete; use anonymous functions i
nstead
f =

<class inline>

>> f(3)
ans = 31
>>

 

Octave inline function

We will discuss anonymous functions in the upcoming Octave tutorials.

—

Octave Tutorials

Octave Tutorial on this website can be found at:
https://www.testingdocs.com/octave-tutorial/

More information on Octave can be found on the official website:
https://www.gnu.org/software/octave/index

Related Posts

Octave Package List

Octave /

Install Octave Packages on Linux

Octave /

Octave User defined Function Example

octave command line linux

Octave /

Octave Command line on Ubuntu

Hello World in Octave

Octave /

Hello World in Octave

Octave /

Octave plot example of function y=x^2

‹ Octave Logarithm Functions› Using Function Handle in Octave

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle
  • Draw Parallel Lines using Flowgorithm Graphics

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version