• 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 continue Statement

Overview

In this tutorial, we will learn about the Octave continue Statement. We can use the continue statement within the body of a loop.

Octave continue Statement

The continue statement is used to skip the rest of the loop statements in the current iteration of the loop and continue with the next iteration.

Example

Let’s understand the concept with an example.
In this code snippet, we run the loop and want to skip the loop statement if the number is divisible by 5.

 

% Sample Octave Script 
% continue statement Demo
% Octave Tutorials - www.TestingDocs.com

%Clear environment
clc;
clear;

% for Loop 
for n= 1 : 10
 if(rem(n,5) ==0)
 continue;
 endif
 fprintf('Number = %d \n',n); 
endfor

Octave continue Statement

We can use the break statement to skip the entire loop.

https://www.testingdocs.com/octave-break-statement/

—

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 break Statement› Octave Input and Output

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