OCTAVE LESSONS

Welcome to the Octave GNU tutorials page, your ultimate resource for learning how to use this powerful open-source software. Our tutorials cover a broad range of topics, starting from the basics to more advanced topics that will help you take your skills to the next level. Learn how to download and install Octave in a few easy steps, and explore its help function to make the most out of this software. You will find tutorials on creating row and column vectors, matrices, and transfer functions. We also cover control statements, which provide you with the tools to structure your code. Our tutorials help you to develop a thorough understanding of the numerical methods that drive Octave. Learn about the approximation of roots using bisection, Newton and Secant Method, as well as integration methods. We offer comprehensive information on DWSIM and COCO for chemical process simulation, giving you the tools to simulate and optimize complex chemical processes. Our website features solved inquiries, so you can learn from practical examples. We also provide information on our payment options and FAQs to help make the learning process as smooth as possible. Whether you are a student or a professional, our Octave GNU tutorials are the perfect starting point for building your skills. So, click on the tutorials tab now and start exploring the world of Octave GNU today!

How To Download Octave

 Octave is free and can be downloaded on Octave website gnu.org/software/octave/GNU .   OCTAVE is a high–level language designed for scientific computations. It is most compatible with MATLAB in speed and syntax (to some extent). 

Lesson 1.1: Octave Tutotial - Introduction

Octave is a software featuring a high-level programming language. Octave helps solve linear and nonlinear problems. Octave has the command windows and editor section which can be executed for coding. Simple exercise:

LESSON 1.2 – HELP FUNCTION, DISP FUNCTION, INPUT FUNCTION

On Command windows = type help disp. Octave will explain in detail how the help function can be used, disp =("Hello world!), Round, floor, input =("Hello world!")

LESSON 2.1 –OCTAVE TUTORIAL (MATLAB): COMPLEX NUMBERS, TRIGONOMETRY, SQUARE ROOT

 Complex (2, 5); - 2 + 5i; Example: - (2+5i)*(2-5i); √(sin⁡〖(30)^2+cos⁡〖(30)^2 〗)  = sqrt ((sin(30)^2)+(cos(30)^2) )



LESSON 2.2 OCTAVE TUTORIAL (MATLAB): ROW VECTORS, ARRAYS, ADDITION OF VECTORS MATRIX


Creating Row vectors use spacing () or commas (,); Creating Column vectors use semicolon (;) or transpose sign (‘); multirow matrices; Display function; To multiply element by element. 2*M

2.*M,  Exponent vector / Power function on Octave 

LESSON 2.3 OCTAVE TUTORIAL (MATLAB): MATRIX - Solving Linear equations using Matrix

Using Octave, Matrices. Create a 2X3 Matrices (Row x Column). Create a 3X3 Matrices (Row x Column) Create an Identity matrix 3x3, eye(3) or 2x2, eye(2), create a 2x2 matrix with random elements rand(2), rand(3)

Lesson Matrix GNU Octave

Finding Roots if Linear three linear equations using Matrix- Octave

Solve linear equations using Matrix - Octave / Matlab. Example

Finding Roots 

2x  -4y -2z = 12 -------D

-2x -2y +2z=-2----------E

4x + 6y -2z=16----------F

A=[2 -4 -2;-2 -2 2;4 6 -2]

B=[12;-2;16]

solve for x,y,z

Ax=B  

X = inv(A)*B  

X = A\B

Transfer Function - Process Control Example 1 using Octave

Consider A Laplace transform of function G(t) given by  

G(s)=Q(s)/P(s)    =(4s^2-4s+24)/(2s^3-4s^2-2s+4)    

1. Determine the function G(t) using Octave.  First use Octave to determine the roots (hint: create row vectors) 

G(s)=Q(s)/P(s)    =(4s^2-4s-24)/(2s^3-4s^2-2s+4)=5.333/(s-2)+2.6667/(s+1)-6/(s-1) 

Table of Laplace Transforms 

G(t)=5.33

Show More

Transfer Function - Process Control Example 2 using Octave. [z,p,k] = tf2zp

Transfer function Example 2

• Tf2zp: finds the matrix of zeros, z, the vector of poles p, and process gain K

Consider A Laplace transform of function G(t) given by  

G(s)=Q(s)/P(s)    =(4s^2-4s+24)/(2s^3-4s^2-2s+4)    

1. Determine the function G(t) using Octave.  First use Octave to determine the roots (hint: create row vectors) 

Function Res

Show More

Transfer Function - Process Control Example 3 using Octave

Control process / transfer function Example 3

Consider A Laplace transform of function G(t) given by  Determine the function G(t) using Octave  

First use Octave to determine the roots (hint: create row vectors) 

(2d^3 y)/(dt^3 )+(10d^2 y)/(dt^2 )+16dy/dt+8y=4dy/dt+6y 

Taking all y(o),y^' (0)=0,solve using Laplace to get  

G(s) =(4s+6)/(2s^3+1

Show More

Transfer Function -Process Control Example 4 using Octave. Solve Series, Parallel, Negative Feedback

Consider this three dynamic modules 

G1=(3s+6)/(3s^3+15s^2+12s+20) 

G2=(0s+3)/(3s^2+0s+27) 

Series:  G(s)=Y(s)/U(s) =G1(s)  X G2(s)  

Parallel G(s)=Y(s)/U(s) =G1(s)+ G2(s)                                                          

feEdback G(s)=Y(s)/U(s) =G1(s)/(1+G1(s)G2(s) ) 

Using Octave

Find the Series function?

Parallel function?

Feedback function?  

Using Octave

#modelingusingoctave

Step By Step Guide. Transfer Function -Process Control E.g 5 using Octave. Series,Parallel,Feedback

Step By Step Guide. Transfer Function -Process Control E.g 5 using Octave. Series,Parallel,Feedback

Looking to explore the world of scientific computations with a powerful and free high-level language? Look no further than Octave. This versatile software, available for download on the Octave website gnu.org/software/octave/GNU, is designed for scientific computations and is highly compatible with MATLAB in terms of speed and syntax. Through these insightful tutorials, you can delve into the capabilities of Octave, starting from the basics of linear and nonlinear problem-solving to more advanced topics like complex numbers, trigonometry, and matrix operations.  Step-by-step guides will walk you through using Octave for linear equations, solving transfer functions, and control processes, allowing you to apply practical mathematical concepts in a computational environment.  Learn how to create plots, integrate using quadrature methods, and implement control statements like for loops, while loops, and if-else statements with Octave. Master root approximation techniques using the Bisection, Newton, and Secant methods as you strengthen your computational skills. By downloading Octave and following these tutorials, you can unlock the potential of scientific computing and enhance your understanding of complex mathematical concepts in a user-friendly environment. Start your journey with Octave today and embark on a rewarding exploration of scientific computations. #Octave #ScientificComputing #Mathematics #Tutorial

OCTAVE LESSONS

How do download and Install Octave GNU and tutorials

[z,p,k] = tf2zp on Octave. Transfer Function - Process Control Example 6. Step by Step Guide

[z,p,k] = tf2zp on Octave. Transfer Function - Process Control Example 6. Step by Step Guide


Plot graphs and functions using OCTAVE GNU.

Lesson 3 Plots Using Octave / Metlab 2D: (X,y) plot, Graph Labels, Plot - colour, marker, style, Subplot() function, Bar, histogram , polar graphs, Semilogx(), semilogy(), loglog(),3D Mesh Surfaces

2D: (X,y) plot, Graph Labels, Plot - colour, marker, style, Subplot() function, Bar, histogram , polar graphs, Semilogx(), semilogy(), loglog(),3D Mesh Surfaces

X,y) plot

- 2d Graph – Plot statement

- Need to define the x-axis AND y-axis

Graph Labels

Grid on (add grid lines) Title (‘text’)

xlabel (‘x-axis’)

ylabel (‘y-label’) legend ( )

Plot - co

Show More

Lesson 5.1: Integration Octave Quadrature Method- Trapezoidal, Simpson,Clenshaw-Curtis Rule.

Integration method (calculus). Under lesson 5 we are going to explore how to solve program integration methods Trapezoidal, Simpson and Quadrature. 


H= @(T) (0.5)+(1.5*10.^(-2)*T)+ 2.5*10.^(-3)*T.^2; 


Solve Analytically 

Step 1 Integrate the original equation


H= @(T) (0.5)+(1.5*10.^(-2)*T^2/2)+ (2.5*10.^(-3)*T.^3/3);


Step 2: Substitute the tem

Show More

Control statement, for loop, while loop, if, els and else statement

Lesson 4.1 : Control Statments, For Loop, While Loop, If , Else, ElseIf Statement.

Control Statments, For Loop, While Loop, If , Else, ElseIf Statment

Bisection Method, Newton Method, Secant Method, Codings using Octave

Approximation of Roots using Bisection, Newton and Secant Method. Lesson 4.2

Well detailed theoretical knowledge on coding this methods https://hplgit.github.io/prog4comp/doc/pub/._p4c-solarized-Matlab027.html 

Copyright © 2023 CHEMICAL ENGINEERING SERVICES WITH KGABISANG  - All Rights Reserved.

info@chemicalengineerwithkgabisang.co.za