如何在MATLAB中将结构变量值保存为.csv文件

时间:2016-10-14 22:19:06

标签: excel matlab csv

我正在尝试将结构值保存到.csv文件中。结构变量值是(x,y)两条直线的坐标值。

I tried to save the structure using these code lines, the structure has another structre inside

保存后我尝试通过excel打开保存的文件,但我在excel中找到了奇怪的字符。Here is how I got the result

有没有人可以帮助我。提前谢谢。

1 个答案:

答案 0 :(得分:0)

save()函数将其保存为matlab特定的文件格式。

尝试csvwrite('points.csv',s);

这是指向Matlab Documentation

的链接