Is there a function Is_array in matlab ?

17 views (last 30 days)
I may be a newbie in matlab have a small problem with a libray in matlab : I don't know if there a function is_array in matlab.
Error in tt_tensor (line 183) if is_array(varargin{1})
My code worked somme weeks ago but didn't work since yesterday.
If someone could help me, I will be gratfull.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 11 Dec 2020
Edited: KALYAN ACHARJYA on 11 Dec 2020
No, there is no "Is_array" inbuilt function in MATLAB, there is "isvector" inbuilt function
isvector(data) returns logical 1 (true) if data is a vector. Otherwise, it returns logical 0 (false).
More: There is "uiarray" function, this function is used primarily for creating UI controls of demos of the toolbox.
Deatail, please check
>> help uiarray
  3 Comments
Mohamed Anwar ABOUABDALLAH
Finaly I decide to use the comnation isvector(size(x)) instead of is array.
Thanks for the help.

Sign in to comment.

More Answers (0)

Categories

Find more on Computational Geometry in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!