Learn R Programming

matlab2r (version 1.5.0)

Translation Layer from MATLAB to R

Description

Allows users familiar with MATLAB to use MATLAB-named functions in R. Several basic MATLAB functions are written in this package to mimic the behavior of their original counterparts, with more to come as this package grows.

Copy Link

Version

Install

install.packages('matlab2r')

Monthly Downloads

214

Version

1.5.0

License

GPL (>= 3)

Maintainer

Waldir Leoncio

Last Published

January 31st, 2023

Functions in matlab2r (1.5.0)

log2

Base 2 logarithm
matlab2r

Convert Matlab function to R
inputdlg

Gather user input
isFilePath

Check if an input is a valid path
isfield

Checks if a list contains a field
isspace

Determine space characters
linspace

Generate linearly-spaced vector
isempty

Is Array Empty?
ismember

Array elements that are members of set array
ismembertol

Tolerant alternative to ismember
questdlg

Prompt for multiple-choice
ones

Matrix of ones
min

Minimum (MATLAB version)
rand

Generate matrix with U(0, 1) trials
max

Maximum (MATLAB version)
repmat

Repeat matrix
num2str

Numeric to string
rem

Remainder after division½
nargin

Number of function input arguments
reshape

Reshape array
sortrows

Sort rows of matrix or table
uiputfile

Save file
times

Element-wise matrix multiplication
zeros_or_ones

Matrix of zeros or ones
squeeze

Squeeze
zeros

Matrix of zeros
setdiff

Set differences of two arrays
strcmp

Compare two character elements
uigetfile

Select a file for loading
sum_MATLAB

Sum of array elements
size

Size of an object
gammaln

Logarithm of gamma function
char

Convert an array to a character array
.onAttach

Prints welcome message on package load
fix

Round toward zero
blanks

Blanks
find

Find indices and values of nonzero elements
cell

Cell array
assert

Assert if condition is true
colon

Vector creation
disp

Display the value of a variable