当前位置:网站首页>Matlab基本函数 length函数
Matlab基本函数 length函数
2022-06-27 21:36:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
1、length函数:计算向量或矩阵的长度
2、用法说明
y = length(x) 函数计算指定向量或矩阵的长度y。如果参数变量x是向量,则返回其长度;如果参数变量是非空矩阵,则length(x)与max(size(x))等价
3、举例说明
>> x = 'youhaidong'x =youhaidong>> y = length(x)y = 10>> x = rand(6,6)x = 0.8147 0.2785 0.9572 0.7922 0.6787 0.7060 0.9058 0.5469 0.4854 0.9595 0.7577 0.0318 0.1270 0.9575 0.8003 0.6557 0.7431 0.2769 0.9134 0.9649 0.1419 0.0357 0.3922 0.0462 0.6324 0.1576 0.4218 0.8491 0.6555 0.0971 0.0975 0.9706 0.9157 0.9340 0.1712 0.8235>> y = length(x)y = 64、附录
>> help length length Length of vector. length(X) returns the length of vector X. It is equivalent to MAX(SIZE(X)) for non-empty arrays and 0 for empty ones. See also numel. Overloaded methods: timer/length serial/length daqdevice/length daqchild/length distributed/length codistributed/length Composite/length gpuArray/length fints/length videosource/length videoinput/length visa/length udp/length tcpip/length icgroup/length icdevice/length i2c/length gpib/length Bluetooth/length xregpointer/length mbcstore/length guidarray/length cgrules/length designdev/length des_constraints/length coninputfactor/length xregcontainer/length xregmulti/length xregcovariance/length xregmonitorplotproperties/length xregdataset/length cgtradeoffkeytable/length dataset/length categorical/length tscollection/length Reference page in Help browser doc lengt发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/133039.html原文链接:https://javaforall.cn
边栏推荐
- Feign implements path escape through custom annotations
- 证券注册账户安全吗,会有风险吗?
- seata
- Sell notes | brief introduction to video text pre training
- Const keyword and its function (usage), detailed explanation of C language const
- golang使用mongo-driver操作——查(基础)
- Golang uses Mongo driver operation -- Query (array related)
- 安全省油环保 骆驼AGM启停电池魅力十足
- VirtualBox extended dynamic disk size pit
- How to use raspberry pie (and all kinds of pies)
猜你喜欢

【PCL自学:PCLPlotter】PCLPlotter绘制数据分析图

零基础自学SQL课程 | IF函数

【论文阅读|深读】SDNE:Structural Deep Network Embedding

webService

VMware virtual machine bridging connectivity

【PCL自学:PCLVisualizer】点云可视化工具PCLVisualizer

Safe, fuel-efficient and environment-friendly camel AGM start stop battery is full of charm

MySQL enterprise parameter tuning practice sharing

Sentinel

安全省油环保 骆驼AGM启停电池魅力十足
随机推荐
[PCL self study: pclplotter] pclplotter draws data analysis chart
MySQL character set
Chapter 2 integrated mp
Using two stacks to implement queues [two first in first out is first in first out]
Solve the cross domain problem of the new version of chrome: Cookie loss and samesite attribute problem "recommended collection"
How to select documents for literature review? For example, I can't finish reading more than 200 search results. How to select documents
matlab axis坐标轴相关设置详解
Sécurité, économie de carburant et protection de l'environnement chameau
halcon之区域:多种区域(Region)特征(6)
const关键字及其作用(用法),C语言const详解
How to use the apipost script - global variables
赛尔笔记|视频文本预训练简述
ICML 2022: UFRGS |作为最优策略转移基础的乐观线性支持和后继特征
[learn FPGA programming from scratch -48]: Vision - development and application of intelligent sensors
虽然TCGA数据库有33种癌症
Transmitting and receiving antenna pattern
vmware虚拟机桥接连通
apipost脚本使用讲解一~全局变量
零基础自学SQL课程 | SQL中的日期函数大全
Zero foundation self-study SQL course | complete collection of SQL basic functions