What does '& ...' mean in Matlab?
显示 更早的评论
I am new here and I don't know this expression: '& ...'. Can anyone explain?
I googled it but could not find an answer. Thanks.
Jennifer
采纳的回答
更多回答(1 个)
Image Analyst
2015-7-9
You didn't give the whole line but my guess is that someone is doing a logical operation and is using ... to continue the operation on the next line. For example instead of doing
results = thisVariable & thatVariable;
they're putting it on 2 lines like this:
results = thisVariable & ...
thatVariable;
That's just a guess, Jennifer, as to what it could be. I can't know for sure because you forgot to include the line(s) of code.
2 个评论
JFz
2015-7-10
Image Analyst
2015-7-10
Jennifer, once an answer has been accepted, there is no way to unaccept it. However, you can still "Vote" for Answers to give the person credit (reputation points) for giving a correct answer. Thanks!
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!