.html;jsessionid=8ab9795200e9a403b0fa132e32c9.

HTTP/1.1 200 OKServer: GlassFish Server Open Source Edition 4.1.1 X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition 4.1.1 Java/Oracle Corporation/1.8) Set-Cookie: JSESSIONID=8aba3423f358d342e56f930dca1c; Path=/; Secure; HttpOnly Set-Cookie: MW_Doc_Template=WEB||||||||||; Path=/help Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Expires: Sun, 17 Feb 2019 06:51:57 EST Content-Type: text/html;charset=utf-8 Date: Thu, 27 Feb 2020 22:01:54 GMT Transfer-Encoding: chunked 10055 Determine whether input is column vector - MATLAB iscolumn - MathWorks France

iscolumn

Determine whether input is column vector

Syntax

iscolumn(V)

Description

iscolumn(V) returns logical 1 (true) if size(V) returns [n 1] with a nonnegative integer value n, and logical 0 (false) otherwise.

Examples

collapse all

Determine if a vector is a column or not.

V = rand(1,5);
iscolumn(V)
ans = logical
   0

Vt = V';
iscolumn(Vt)
ans = logical
   1

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2010b

0