How to create a 4 dimensional array??
Ältere Kommentare anzeigen
This is just a general question because I can't find it anywhere, but does anyone know how to create a 4-D array? What would the basic code be for it or just a basic example of one would be great!
Akzeptierte Antwort
Weitere Antworten (1)
the cyclist
am 1 Dez. 2011
Bearbeitet: John Kelly
am 26 Feb. 2015
Here is a trivial example:
>> A = zeros(2,3,5,7);
>> A(1,2,1,2) = 6;
>> A(1,1,5,6) = 5;
>> A(2,1,1,:) = pi;
3 Kommentare
Jan
am 1 Dez. 2011
This is, as requested, the basic code. +1
erfan vahdat
am 28 Jul. 2020
thanks
Precious Chukwuezi
am 30 Dez. 2023
thanks
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!