# iscolumn

Determine if input is column vector

## Syntax

``tf = iscolumn(V)``

## Description

example

````tf = iscolumn(V)` returns logical `1` (`true`) if `V` is a column vector. Otherwise, it returns logical `0` (`false`). A column vector is a two-dimensional array that has a size of N-by-1, where N is a nonnegative integer.```

## Examples

collapse all

Create a vector. Determine if it is a column vector.

```V = rand(5,1); tf = iscolumn(V)```
```tf = logical 1 ```

Find the conjugate transpose of the vector. Determine if it is a column vector.

```Vt = V'; tf = iscolumn(Vt)```
```tf = logical 0 ```

Create a scalar, which is a 1-by-1 array.

`V = 5;`

Determine if the scalar `V` is also a column vector.

`tf = iscolumn(V)`
```tf = logical 1 ```

Create an array of characters. Determine if it is a column vector.

```V = 'Hello, World!'; tf = iscolumn(V)```
```tf = logical 0 ```

Check the dimension of `V` by using `size`. `V` is a 1-by-13 character vector, which is not a column vector.

`sz = size(V)`
```sz = 1×2 1 13 ```

Now create a string scalar by enclosing a piece of text in double quotes.

`V = "Hello, World!";`

Check if the scalar `V` is also a column vector.

`tf = iscolumn(V)`
```tf = logical 1 ```

## Input Arguments

collapse all

Input array, specified as a scalar, vector, matrix, or multidimensional array.

## Algorithms

• If the input array `V` has more than two dimensions, then `iscolumn(V)` returns logical `0` (`false`). For example, an array of size N-by-1-by-2 is not a column vector.

## Version History

Introduced in R2010b