Problem with Vercat error

1 Ansicht (letzte 30 Tage)
Dani D
Dani D am 15 Feb. 2016
Kommentiert: Star Strider am 15 Feb. 2016
Hello, Why i have vercat error? They are the same , but i have and error. Please view the image. Thanks
<<
>>

Akzeptierte Antwort

Star Strider
Star Strider am 15 Feb. 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

Weitere Antworten (1)

Dani D
Dani D am 15 Feb. 2016
Thank you, But i want create matrix with 164 rows(from 82 to 246 ) with 234 columns(from 117 351 ). What i do?
  1 Kommentar
Star Strider
Star Strider am 15 Feb. 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’

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Denoising and Compression finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by