- Справка Scilab
- Основные функции
- Побитовые операции
- Комплексные числа
- Дискретная математика
- Элементарные матрицы
- логарифм - экспонента - степень
- Плавающая запятая
- Представление целых чисел
- Манипуляции с матрицами
- Матричные операции
- Поиск и сортировка
- Операции с множествами
- Сигнальная обработка
- Символьное вычисление
- Тригонометрия
- and
- &
- cat
- cell2mat
- cellstr
- isempty
- isequal
- isvector
- lstsize
- modulo
- ndims
- nthroot
- or
- |
- sign
- size
- iscolumn
- ismatrix
- isrow
- isscalar
- issquare
- num2cell
- unwrap
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
num2cell
converts an array into a cell array
Calling Sequence
y=num2cell(x [,dims])
Arguments
- x
a real, an integer, a boolean or a string matrix
- dims
a scalar or a vector of positive integers
- y
a cell
Description
num2cell
converts x
which is a real, a boolean, or a string matrix into a cell.
If dims
is not mentioned, y
will have the same size as x
.
But if dims
is present, the dimensions of x
mentioned in dims
will be reduced to 1. Moreover, the dimensions of y
components will be equal to the dimensions sizes of
x
whose numbers are in dims
vector.
For example, if size(x
)=[2 3 4 5 6] and dims
=[2 4], then size(y
)=
[2 1 4 1 6], that is the sizes of the second and the fourth dimensions are reduced to 1. And size(y
(i))=
[1 3 1 5 1], which means that the sizes of the second and the fourth dimensions are equal to the sizes of the second and the
fourth ones of x
.
Examples
Report an issue | ||
<< issquare | Основные функции | unwrap >> |