Problem with Vercat error
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dani D
el 15 de Feb. de 2016
Comentada: Star Strider
el 15 de Feb. de 2016
Hello, Why i have vercat error? They are the same , but i have and error. Please view the image. Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155002/image.jpeg)
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155010/image.jpeg)
>>
0 comentarios
Respuesta aceptada
Star Strider
el 15 de Feb. de 2016
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 comentarios
Más respuestas (1)
Dani D
el 15 de Feb. de 2016
1 comentario
Star Strider
el 15 de Feb. de 2016
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’
Ver también
Categorías
Más información sobre Denoising and Compression en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!