Hi, what does ; exactly mean?
7 次查看(过去 30 天)
显示 更早的评论
I know that .* mean that you multiple the two elements of equally sized arrays. But in the first array and second the ; symbol occurs, but what is the exact meaning of this symbol? here is function
x=[1 2;3 4;5 6; 7 8].*[1;2;3;4]
1 个评论
Stephen23
2021-11-29
Many basic MATLAB concepts, such as how to create matrices, are explained in the introductory tutorials:
回答(2 个)
Jan
2021-11-29
Please read the Getting Started chapters of the documentation. This is recommended for beginners also: https://www.mathworks.com/learn/tutorials/matlab-onramp.html . Learning the basics from the manuals is more efficient than asking them in the forum.
The semicolon inside the concatenation operator [ ] or inside { } means a horizontal concatenation. Try it:
a = [1, 2]
size(a)
b = [1; 2]
size(b)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!