Filter löschen
Filter löschen

How I can solve this kind of error?

1 Ansicht (letzte 30 Tage)
Sourasis Chattopadhyay
Sourasis Chattopadhyay am 25 Okt. 2021
Beantwortet: Image Analyst am 25 Okt. 2021
and I am writing this code
  1 Kommentar
Rik
Rik am 25 Okt. 2021
How are you confirming comb5 actually has row+1 rows on the first iteration?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Sobha T
Sobha T am 25 Okt. 2021
If comb5 is a one-dimensional array, then you can use : instead of ,
as shown below
comb5(row:end-1)

Image Analyst
Image Analyst am 25 Okt. 2021
Before the while loop, put this
[rows, columns] = size(comb5) % Don't use a semicolon
what do you see? Chances are you have 1 row and several columns, so you can't reference comb5(1+1, end) because comb5 does not have 2 rows.

Kategorien

Mehr zu Multidimensional Arrays 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