Main Content

isrow

确定输入是否行向量

Syntax

isrow(V)

Description

isrow(V)returns logical 1 (true) ifsize(V) returns[1 n]with a nonnegative integer valuen, and logical 0 (false) otherwise.

Examples

全部折叠

Determine if a vector is a row or not.

V = rand(5,1); isrow(V)
ans =logical0
Vt = V'; isrow(Vt)
ans =logical1

Extended Capabilities

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

GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

HDL Code Generation
Generate Verilog and VHDL code for FPGA and ASIC designs using HDL Coder™.

Introduced in R2010b