当前位置:网站首页>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
边栏推荐
- 文献综述如何挑选文献进行阅读,比如我的检索结果有200多篇根本看不完,如何进行文献挑选呢?...
- 【PCL自学:Segmentation3】基于PCL的点云分割:区域增长分割
- Pat class B 1013
- [digital ic/fpga] detect the position of the last matching sequence
- [AI application] detailed parameters of NVIDIA geforce RTX 1080ti
- Teach you how to transplant tinyriscv to FPGA
- 搭建开源美观的数据库监控系统-Lepus
- C language character pointer and string initialization
- seata
- The file or assembly 'cefsharp.core.runtime.dll' or one of its dependencies could not be loaded. Is not a valid Win32 Application. (exception from hresult:0x800700c1)
猜你喜欢

MySQL enterprise parameter tuning practice sharing

MySQL企业级参数调优实践分享

webService

Zero foundation self-study SQL course | complete collection of SQL basic functions

Sécurité, économie de carburant et protection de l'environnement chameau

Smart wind power | Tupu software digital twin wind turbine equipment, 3D visual intelligent operation and maintenance

How to quote Chinese documents when writing a foreign language?

ASP.NET仓库进销存ERP管理系统源码 ERP小程序源码

赛尔笔记|视频文本预训练简述

c语言之字符串数组
随机推荐
安全省油环保 骆驼AGM启停电池魅力十足
【PCL自学:PCLVisualizer】点云可视化工具PCLVisualizer
Feign implements path escape through custom annotations
本地可视化工具连接阿里云centOS服务器的redis
智慧风电 | 图扑软件数字孪生风机设备,3D 可视化智能运维
How to quote Chinese documents when writing a foreign language?
[PCL self study: pclplotter] pclplotter draws data analysis chart
c语言字符指针、字符串初始化问题
【AI应用】Jetson Xavier NX的详情参数
[VIM] tutorial, common commands, efficient use of vim editor
How to find Chinese documents corresponding to foreign documents?
【PCL自学:PCLPlotter】PCLPlotter绘制数据分析图
手把手教你移植 tinyriscv 到FPGA上
The file or assembly 'cefsharp.core.runtime.dll' or one of its dependencies could not be loaded. Is not a valid Win32 Application. (exception from hresult:0x800700c1)
[sword finger offer] 48 Longest substring without duplicate characters
Count prime [enumeration - > space for time]
[PCL self study: segmentation4] point cloud segmentation based on Min cut
安全省油環保 駱駝AGM啟停電池魅力十足
零基础自学SQL课程 | SQL基本函数大全
ASP. Net warehouse purchase, sales and inventory ERP management system source code ERP applet source code