>> A1=[1 1 1 1 0 0 0 0];>> D=[A1];>> D(2)=[0 0 0 0 1 0 1 0];
MATLAB: Hi every one , I need to construct a binary Array such that each time i can add another cell to it ? as shown in the code below .,, but i got an error
binary array
binary array
>> A1=[1 1 1 1 0 0 0 0];>> D=[A1];>> D(2)=[0 0 0 0 1 0 1 0];
Best Answer