Graphics Commands and Object Properties (MATLAB) Part 1

MATLAB Data Formats – Section 3.2.1

Data Formats

Command

Returns

MAT – MATLAB workspace

LOAD

Variables in file

CSV – Comma separated numbers

CSVREAD

Double array

TXT – Formatted data in a text file

TEXTREAD

Double array

DAT – Formatted text

IMPORTDATA

Double array

DLM – Delimited text

DLMREAD

Double array

TAB – Tab separated text

DLMREAD

Double array

Spreadsheet Formats

Command

Returns

XLS – Excel worksheet

XLSREAD

Double array and cell array

WK1 – Lotus 123 worksheet

WK1READ

Double array and cell array

Scientific Data Formats


Command

Returns

CDF – Common Data Format

CDFREAD

Cell array of CDF records

FITS – Flexible Image Transport System

FITSREAD

Primary or extension table data

HDF – Hierarchical Data Format

HDFREAD

HDF or HDF-EOS data set

Image Formats

Command

Returns

TIFF – TIFF image

IMREAD

Truecolor, grayscale or indexed image(s).

PNG – PNG image

IMREAD

Truecolor, grayscale or indexed image

HDF – HDF image

IMREAD

Truecolor or indexed image(s)

BMP – BMP image

IMREAD

Truecolor or indexed image

Audio Formats

Command

Returns

AU – Next/Sun Sound

AUREAD

Sound data and sample rate

SND – Next/Sun Sound

AUREAD

Sound data and sample rate

WAV – Microsoft Wave Sound

WAVREAD

Sound data and sample rate

Movie Formats

Command

Returns

AVI – Movie

AVIREAD

MATLAB movie

Line Color, Marker Style, and Line Style Strings – Section 3.3.1

Line Color

Marker Style

character

creates

character creates

b or blue

blue line

. point

g or green

green line

o circle

r or red

red line

x x-mark

c or cyan

cyan line

+ plus

m or magenta

magenta line

* star

y or yellow

yellow line

s square

k or black

black line

d diamond

v triangle down

Line Style

tmpb8bf-222

character

creates

< triangle left

-

solid

> triangle right

dotted

p pentagram

-.

dashdot

h hexagram

dashed

TeX Characters Available in MATLAB – Section 3.4.5

TeX

Characters

Result

TeX

Characters

Result

TeX

Characters

Result

\alpha

tmpb8bf-223

\upsilon

tmpb8bf-224

\sim

tmpb8bf-225

\beta

tmpb8bf-226

\phi

tmpb8bf-227

\leq

tmpb8bf-228

\gamma

tmpb8bf-229

\chi

tmpb8bf-230

\infty

tmpb8bf-231

\delta

tmpb8bf-232

\psi

tmpb8bf-233

\clubsuit

tmpb8bf-234

\epsilon

tmpb8bf-235

\omega

tmpb8bf-236

\diamondsuit

tmpb8bf-237

\zeta

tmpb8bf-238

\Gamma

tmpb8bf-239

\heartsuit

tmpb8bf-240

\eta

tmpb8bf-241

\Delta

tmpb8bf-242

\spadesuit

tmpb8bf-243

\theta

tmpb8bf-244

\Theta

tmpb8bf-245

\leftrightarrow

tmpb8bf-246

\vartheta

tmpb8bf-247

\Lambda

tmpb8bf-248

\leftarrow

tmpb8bf-249

\iota

tmpb8bf-250

\Xi

tmpb8bf-251

\uparrow

tmpb8bf-252

\kappa

tmpb8bf-253

\Pi

tmpb8bf-254

\rightarrow

tmpb8bf-255

\lambda

tmpb8bf-256

\Sigma

tmpb8bf-257

\downarrow

tmpb8bf-258

\mu

tmpb8bf-259

\Upsilon

tmpb8bf-260

\circ

tmpb8bf-261

\nu

tmpb8bf-262

\Phi

tmpb8bf-263

\pm

tmpb8bf-264

\xi

tmpb8bf-265

\Psi

tmpb8bf-266

\geq

tmpb8bf-267

\pi

tmpb8bf-268

\Omega

tmpb8bf-269

\propto

tmpb8bf-270

\rho

tmpb8bf-271

\forall

tmpb8bf-272

\partial

tmpb8bf-273

\sigma

tmpb8bf-274

\exists

tmpb8bf-275

\bullet

tmpb8bf-276

\varsigma

tmpb8bf-277

\ni

tmpb8bf-278

\div

tmpb8bf-279

\tau

tmpb8bf-280

\cong

tmpb8bf-281

\neq

tmpb8bf-282

\equiv

tmpb8bf-283

\approx

tmpb8bf-284

\aleph

tmpb8bf-285

\Im

tmpb8bf-286

\Re

tmpb8bf-287

\wp

tmpb8bf-288

\otimes

tmpb8bf-289

\oplus

tmpb8bf-290

\oslash

tmpb8bf-291

\cap

tmpb8bf-292

\cup

tmpb8bf-293

\supseteq

tmpb8bf-294

\supset

tmpb8bf-295

\subseteq

tmpb8bf-296

\subset

tmpb8bf-297

\int

tmpb8bf-298

\in

tmpb8bf-299

\o

 

\rfloor

tmpb8bf-301

\lceil

tmpb8bf-302

\nabla

tmpb8bf-303

\lfloor

tmpb8bf-304

\cdot

tmpb8bf-305

\dots

tmpb8bf-306

\perp

tmpb8bf-307

\neg

tmpb8bf-308

\prime

tmpb8bf-309

\wedge

tmpb8bf-310

\times

tmpb8bf-311

\0

tmpb8bf-312

\rceil

tmpb8bf-313

\surd

tmpb8bf-314

\mid

tmpb8bf-315

\vee

tmpb8bf-316

\varpi

tmpb8bf-317

\copyright

tmpb8bf-318

\langle

tmpb8bf-319

\rangle

tmpb8bf-320  

TeX Stream Modifiers – Section 3.4.5

TeX Stream Modifier

Description

\bf

Bold font.

\it

Italics font.

\sl

Oblique font (rarely used).

\rm

Normal font.

A

Make part of string superscript.

_

Make part of string subscript.

\fontname{fontname}

Specify the font family to use.

\fontsize{fonts/ze}

Specify the font size in FontUnits.

Projection Types – Section 4.2.1

Projection Type

How to Interpret

How to Use

Orthographic

Projection

Think of the "viewing volume" as a box whose opposite sides are parallel, so the distance from the camera does not affect the size of surfaces in the plot.

Used to maintain the actual size of objects and the angle between objects.

This works well for data plots. Real-world objects look unnatural.

Perspective

Projection

The "viewing volume" is the projection of a pyramid where the apex has been cut off parallel to the base. Objects farther from the camera appear smaller.

Used to create more "realistic" views of objects. This works best for real-world objects. Data plots may look distorted.

Next post:

Previous post: