matlab中and怎么使用方法,MATLAB2014a中help与参考页中文翻译(用于学习) and

镇场诗:吾心为他人,此智不私藏。学术有小成,愿帮大家忙。诚心说愿望,愿见闻者得启发。 /// and - Find logical AND and – 逻辑与     This MATLAB function performs a logical AND of all input arrays A, B, etc., and returns an array containing elements set to either logical 1 (true) or logical 0(false).     这个MATLAB函数对输入数组A,B,。。。。进行逻辑与运算。返回一个数组,这个数组包含的元素要么是逻辑1,要么是逻辑0。 Syntax   用法 A & B & ... and(A, B) Description 描述 A & B & ... performs a logical AND of all input arrays A, B, etc., and returns an array containing elements set to either logical 1 (true) or logical 0 (false). An element of the output array is set to 1 if all input arrays contain a nonzero element at that same array location. Otherwise, that element is set to 0. A & B & ...对输入数组A,B,。。。进行逻辑与运算,并且返回一个元素要么是逻辑0,要么是逻辑1的数组。如果输出数组的元素被设为1,那么证明所有输入数组在相同位置均为非零元素。否则,将会被设为0. Each input of the expression can be an array or can be a scalar value. All nonscalar input arrays must have equal dimensions. If one or more inputs are an array, then the output is an array of the same dimensions. If all inputs are scalar, then the output is scalar. 每一个输入的表达式可以是一个数组也可以是一个标量。所有不是标量的输入数组必须具有相同的维度。如果一个或者多个输入是数组,那么输出是一个与输入具有相同维度的数组。如果全部的输入是标量,那么输出也是标量。 If the expression contains both scalar and nonscalar inputs, then each scalar input is treated as if it were an array having the same dimensions as the other input arrays. In other words, if input A is a 3-by-5 matrix and input B is the number 1, then B is treated as if it were a 3-by-5 matrix of ones. 如果表达式既包含标量又包含非标量的输入,那么每一个标量输入将会被当做与其他输入数组相同维度的数组对待。换句话说,如果A是一个三行五列的矩阵,B是一个数字1,那么B将会当成一个三行五列全都是1的矩阵对待。 and(A, B) is called for the syntax A & B when either A or B is an object. 当A与B是对象时,在语法规则上,and(a,b)被叫做A与B。 Note   The symbols & and && perform different operations in the MATLAB® software. The element-wise AND operator described here is &. The short-circuit AND operator is &&. 笔记 在MATLAB中,符号&和&&是不同的运算。普通元素之间的与运算是&,&&具有短路运算的功能。(很好用) /// 翻译matlab 借助了翻译软件和实践时候的经验,愿所有看了这篇翻译的人能得到一些启示。 因为是为了帮助新手入门,所以我努力以人为本,说新手听得懂的语言,绝不一一对译。n(*≧▽≦*)n 如果我的翻译有错误,请指正。我会不断地进步并更新改进翻译的。请务必不吝赐教。在下感激不尽。 感恩众生与使用的软件,金山词霸与microsoft word。 注:此文仅用作科研学习使用。如果我侵犯了您的权益,请告知。看到您的告知后,我将及时作出处理。 此文为原创,未经同意不得转载。所以转载到其他网站前,请询问在下。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值