MATLAB: Binary data in Logical Array into a text file arrayarraysbinarylogical?text filetext;textscan Would it be possible to export binary data in a logical array into a text file? Best Answer >> X = randi(2,5)-1;>> csvwrite('temp.txt',X)creates a text file containing this:1,1,0,0,11,1,0,1,11,0,0,0,11,1,1,1,01,0,1,1,0 Related SolutionsMATLAB: Binary data in Logical associated with coordinates >> X = randi(2,5)-1;>> [R,C] = find(X);>> csvwrite('temp2.txt',[R,C])produces this file (with the coordinates of the ones):2,15,13,25,23,35,31,42,45,41,52,5 MATLAB: Array of 1 and 0 to decimal B = bin2dec(char(A + '0'))B = 147 15 170 Related QuestionHow to create matrix of string and use it in mathematic operationCreating a logical arrayHi 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 errorSee sequences in arrayRemove elements from a matrix
Best Answer