Skip to main content

The Basics Using the Command Line

  • Chapter
  • First Online:
Book cover Introduction to MATLAB® for Biologists

Part of the book series: Learning Materials in Biosciences ((LMB))

  • 2003 Accesses

Abstract

In this chapter, you will learn the basics of MATLAB® using the command line. The notation for basic mathematical operators is introduced and the role of different types of parentheses summarized. MATLAB records your command history, and we will show you how to access this so that you can repeat commands without having to retype them and how to add comments to your code. You will discover how floating-point numbers can lead to rounding errors in computational calculations. You will learn how to assign calculated values to variables, the rules for naming variables, how to use those variables in further calculations and how to erase them when they are no longer needed.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    From now on we will not always say “Try the following in the Command Window” instead assume, unless otherwise stated, that you should try any bits of code in MATLAB® as you work through the book.

  2. 2.

    If you are using macOS or Linux, you may need to use forward slash rather than back slash in filepath names.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Webb, C.R., Domijan, M. (2019). The Basics Using the Command Line. In: Introduction to MATLAB® for Biologists. Learning Materials in Biosciences. Springer, Cham. https://doi.org/10.1007/978-3-030-21337-4_2

Download citation

Publish with us

Policies and ethics