How to trim two vectors of differing lengths
12 次查看(过去 30 天)
显示 更早的评论
If I have two vectors of varying lengths or rows, how do I trim the end of the larger vector so that both vectors are now of the same length? For example, if I have the below:
A = [0
1
2]
B = [0
1
2
3
4]
What I want is something like:
A = [0
1
2]
B = [0
1
2]
Thanks for the help in advance.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Construction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!