How to Go to a New Line in MATLAB


MATLAB is a software product made by MathWorks, an engineering and science software developer. The MATLAB program is designed to allow users to piece together and solve complex math problems and algorithms. Unlike basic calculators, MATLAB takes digits and common math and engineering symbols as inputs. MATLAB automatically begins computing inputs when you press the "Enter" or "Return" key after typing single-line functions. However, it is possible to enter several of these functions on separate lines with a special command.

  • Enter a command or function at the MATLAB prompt.

  • Press "Shift" and "Enter" simultaneously. This invokes the "Break Line Without Code Execution" command and moves the cursor to the next line.

  • Type an additional function on the new line. Repeat Step 2 to enter more functions.

  • Press "Enter" to run the commands entered on each line.

Tips & Warnings

  • You do not need to use the "Break Line" function for multiple line functions such as "If, Then."

Related Searches


Promoted By Zergnet


Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!