Creating a certain array
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I want to create a 10 by 10 array and replace its values. If the said value is at 1,1 / 3,1 / etc. where combination of 2 values of its rows and columns make an even number I want it to be 10 and if its 2,1 / 1,4 etc. I want it to be 20. Any idea how I can achieve that? I guess i should check the combination of row and column numbers for divisibility by 2 but I couldn't find how.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrox Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!