how to save digital output

a=[ 1 0 1 0 1 1 0 0 1 1 0];
save a_out.txt -ascii a
1.0000000e+00 0.0000000e+00 1.0000000e+00 0.0000000e+00 1.0000000e+00 1.0000000e+00 0.0000000e+00 0.0000000e+00 1.0000000e+00 1.0000000e+00 0.0000000e+00
is there a way to save it as
1 0 1 0 1 1 0 0 1 1 0? as digital output so I can feed it into simualtor?

Risposte (2)

Akira Agata
Akira Agata il 28 Nov 2019
How about using writematrix function?
writematrix(a,'a_out.txt','Delimiter',' ');

Richiesto:

il 27 Nov 2019

Risposto:

il 28 Nov 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by