• TestingDocs
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

  • How to secure your SQL Database: Tips and Tricks
  • Shaping the Future of Development: Exploring Key Trends in Software Engineering
  • Improving Java Performance with Multithreading
  • Difference between PHP and JavaScript?
  • Bing Conversation Styles
  • ChatGPT Introduction
  • Open Source AI Frameworks
  • Artificial Intelligence Tools
  • Top AI Music Applications
  • Top AI Website Design Tools

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com