0% found this document useful (0 votes)
14 views

2.3 Section Wrap-Up _ 2. Handling Two-Dimensional Data _ MATLAB Essentials _ edX

2.3 Section Wrap-Up _ 2. Handling Two-Dimensional Data _ MATLAB Essentials _ edX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

2.3 Section Wrap-Up _ 2. Handling Two-Dimensional Data _ MATLAB Essentials _ edX

2.3 Section Wrap-Up _ 2. Handling Two-Dimensional Data _ MATLAB Essentials _ edX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

MathWorks intro_matlab

Ayuda alvaro_0404
MATLAB Essentials

Curso Progreso Fechas Discusión Notas

Curso / 2. Handling Two-Dimensional Data / 2.3 Section Wrap-Up

Anterior Siguiente

2.3.1 Quick Reference and Things to Try Out


Marcar esta página

A "Quick Reference and Things to Try Out" unit is included at the end of every section. It has all the commands
used in this section and some additional things for you to try out on your own.

Quick Reference
The table below collects all used commands or important concepts with links to the documentation.

Datetime and Duration Functions and Concepts Description

datetime Create a datetime array

year, month, day, hour, minute, second Extract components of datetime values as numeric values

duration Create a duration array Ocultar Notas

years, days, hours, minutes, seconds Create a duration array or return a numerical value from a duration array

myDateTime.Format = 'yyyy-MM-dd' Change the format of a datetime array

myDuration.Format = 's' Change the format of a duration array

Categorical Functions Description

categories Return the categories of a categorical array

addcats, removecats, mergecats, renamecats Add, remove, merge, or rename categories in a categorical array

Text Functions and Concepts Description

extractBefore, extractAfter Extract substrings before/after specified substrings

insertBefore, insertAfter Insert strings before/after specified substrings

erase, replace Delete/replace substrings

contains Determine if a string contains a pattern

"Hello" + "World" Concatenate string elements into a single element

['Hello' 'World'] Concatenate char elements into a single element

Relational and Logical Operators Description

>, <, >=, <=, ==, ~= Relational operators; compare two values

&, |, ~ Logical operators; combine multiple conditions &, | or negate a condition (~)

Mathematical Operators Description

+, -, .*, ./, .^ Elementwise operators; operate on each element of an array, individually

*, /, \, ^ Matrix operators; perform matrix math

' Transpose (complex conjugate); switch the rows and columns of a matrix

Matrix Creation Functions Description

zeros, ones Create a matrix of zeros/ones

rand Create a matrix of uniformly distributed random values between 0 and 1

randi Create a matrix of uniformly distributed random integers

randn Create a matrix of normally distributed random values

Matrix Visualization Functions Description

surf Create a surf plot

mesh Create a mesh plot

pcolor Plot matrix data as a grid of colored cells

image Display image from an array

Statistical Functions Description

mean Compute mean (average)

median Compute median

mode Compute mode (most frequent value)

std Compute standard deviation

sum Compute the sum of array elements

Other Functions and Concepts Description

array2table, table2array Convert a matrix to a table/Convert a table to a matrix

... Continue long statements on multiple lines

char Convert an array to a character array

string Convert an array to a string array

double Convert an array to a double array

Things to Try Out


You have applied many new commands and concepts in Section 2. The table below lists some other useful
functions, components, or concepts to explore if you are interested. You don't need them to complete the
course, but they might come in handy.

Useful Live Editor Tasks Description

Join Tables Live Task Interactively combine two tables in the live editor

Create Plot Live Task Create and explore visualizations in the live editor

Functions for Tables Description

height, width Determine the number of table rows/table variables

Datetime Functions and Concepts Description

timeofday Elapsed time since midnight

isweekend Determine whether datetime values are on a weekend

isbetween Determine whether datetime values are within a specified interval

now Current date and time

datetime("yesterday"), datetime("today"), Create a datetime variable with yesterday's, today's, or tomorrow's date
datetime("tomorrow")

Logical Functions Description

xor Find logical exclusive-OR

logical Convert numeric value to logical

any Determine if at least one element in an array is nonzero or true

all Determine if all elements in an array are nonzero or true

Matrix Creation Functions Description

eye Create an identity matrix

magic Create a magic square matric with equal row and column sums

Mathematical Operators Description

.' Transpose (nonconjugate). Returns the same result as ' for matrices
without complex numbers

Addtional Functions for Working with Text Data Description

extract Extract substrings from strings

extractBetween Extract substrings between specified substrings

split Split strings at delimiters (spaces, commas, etc.)

join Merge strings together

count Count occurrences of pattern in strings

startsWith Determine if string starts with a pattern

endsWith Determine if string ends with a pattern

Anterior Siguiente

Todos los Derechos están Reservados

edX Legal Contáctanos


Acerca de Condiciones de Servicio y Código de Honor Blog
Afiliados Política de privacidad Contáctenos
edX para negocios Políticas de Accesibilidad Centro de Ayuda
Open edX Política de marcas Seguridad
Carreras Mapa del Sitio Kit Multimedia © 2023 edX LLC. All rights reserved.
Noticias Política de cookies 深圳市恒宇博科技有限公司 粤ICP备
No vender mi información personal 17044299号 2

You might also like