tests/mkconstarray.R

###
### $Id: mkconstarray.R 22 2022-05-30 18:03:47Z proebuck $
###


##-----------------------------------------------------------------------------
test.mkconstarray <- function(input, expected) {
    output <- do.call(getFromNamespace("mkconstarray", "matlab"), input)
    identical(output, expected)
}

test.mkconstarray(list(class.type = "double", value = pi, size = 4), rep(pi, 4))

Try the matlab package in your browser

Any scripts or data that you put into this service are public.

matlab documentation built on July 1, 2024, 5:07 p.m.