본문으로 건너뛰기
Hub Nexus
업데이트됨

작성자아직 작성자가 없습니다맡기

개선할 점이 보이나요? 변경을 제안하세요.

후원

이 페이지는 공개 상태입니다.

Basic MATLAB command

Matlab Logo which is produced by the 3D surface plot

Matlab Logo which is produced by the 3D surface plot (Image: Jarekt , LukeTriton, Public domain)

During start to use the program, you may see "double greater than" symbols aka >> on the top left of command window.

You can start to type simple or complex mathematic equation to your liking.

Some of the examples are as follows:

>> 6+3 - 4/2

ans =
7

>> sind(30)

ans =
0.5000

or you may even assign a value to a variable / perform simple algebra equations

>> x = 200 % assigning value 200 to variable x

x =
200

>> y = 120 % assigning value 120 to variable y

y =
120

>> p = x-y % make a simple subtraction equation where the x is subtract y equals to p

p =
80

Note: You can learn more about MATLAB operator from this page: MATLAB Programming/Fundamentals of MATLAB/MATLAB operator

Basic Commands

These commands listed below are the commands that you usually will encounter when using MATLAB

clc - Clear command window.

clear - Remove all variable values from workspace

disp - Display the values inside of the variable / matrix

help - Display tooltip help text inside the Command Window. The help displays the help for the functionality specified by NAME, such as a function, operator symbol, method, class, or toolbox.

Hello World

Once Hello World, which is the simplest of programs, works the beginner can move on to explore the MATLAB workspace

50%

(Image: Siebrand, Public domain)

available for developing or running Matlab code.

Using the workspace the beginner can then learn to manipulate basic MATLAB Variables

50%

(Image: Siebrand, Public domain)

.

For convenience Matlab allows the workspace to be saved and loaded using *.mat files.

75%

(Image: Siebrand, Public domain)

Where this page came from

This page was imported from Wikibooks. From “MATLAB Programming” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

이 페이지가 속한 매거진MATLAB Programming

언어English

이용 허락: CC BY-SA 4.0 · 출처 en.wikibooks.org

견해

코멘트

Spinner Logo
버전: 2CC0 1.0 (퍼블릭 도메인)
The runaway star that left the Tarantula Nebula
버전: 2CC0 1.0 (퍼블릭 도메인)
The Eagle Nebula, seen in the infrared
버전: 2CC0 1.0 (퍼블릭 도메인)
The Cosmic Cliffs are not cliffs
버전: 2CC0 1.0 (퍼블릭 도메인)
The recommended targets are real, but the largest health gain is between doing nothing and doing a little. That is the part worth knowing if you are starting from nothing.
버전: 2CC0 1.0 (퍼블릭 도메인)
Sleep is not one state but a cycle through several, each doing different work. Most sleep disorders are a failure to complete that cycle rather than a shortage of hours.
버전: 2CC0 1.0 (퍼블릭 도메인)
Four nebulae that revealed the shape of our galaxy