Writing data from multiple scopes in Simulink to an excel file?
3 次查看(过去 30 天)
显示 更早的评论
Hi
I have used "to workspace" function and saved the data as x and y variables.
I know I can use the following to export one scope and save it in excel. But how do I change this so it does both of them at the same time?
A= [tout,x];
save file.xls A -ascii
Thanks
0 个评论
采纳的回答
Mischa Kim
2014-4-20
James, simply append the second data vector to the matrix
A = [tout,x,y];
save file.xls A -ascii
where x and y are the two data arrays from the two scopes.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!