Problem with Vercat error
2 次查看(过去 30 天)
显示 更早的评论
Hello, Why i have vercat error? They are the same , but i have and error. Please view the image. Thanks
<<
>>
0 个评论
采纳的回答
Star Strider
2016-2-15
They’re not the same:
B = [82:246, 117:351];
RowA = 82;
ColumnA = 117;
B_elements = [RowA 246; ColumnA 351]
B_elements_range = diff(B_elements,[],2)
B_elements =
82 246
117 351
B_elements_range =
164
234
0 个评论
更多回答(1 个)
Dani D
2016-2-15
1 个评论
Star Strider
2016-2-15
It seems that you want to create it from an existing matrix.
This works:
A = randi(99, 250, 400); % Create Original Matrix
B = A(82:246, 117:351); % Create New Matrix From Elements Of ‘A’
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Denoising and Compression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!