matlab的char与c++的char不同?matlab的char可以存多个字符?
测试:
data.txt
a 1 2
3 4 4
5 5 5
code:
file_id = fopen('data.txt ', 'r');
data = fgetl(file_id)
data_class = class(data)
data_size =size(data)
result:
data =
a 1 2
data_class =
char
data_size =
1 5