writing multiple arrays in a text file

hello dears, i have 2 arrays which i want to write them in a text file, both in 1 file in two seperate coloums,i also tried fprintf but it prints in 1 coloum. what shoud i do? THANKS.

답변 (3개)

Oleg Komarov
Oleg Komarov 2011년 5월 8일

1 개 추천

fprintf(fid, '%f%f', [A;B])
A and B are doublr row vectors and the output is length(A) by 2 columns.
alireza
alireza 2011년 5월 9일

1 개 추천

thanks , if i want to write more arrays in other columns waht shoud i do ?
alireza
alireza 2011년 5월 9일

0 개 추천

problem solved,thanks

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

질문:

2011년 5월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by