Export the Traceability Matrix View Programmatically
显示 更早的评论
I am able to generate traceability matrix programatically (with all slreqx files in one cell array as left artifacts and all slx in other cell array as right artifacts) but I am unable to generate a report or export that view in an excel programatically. I searched through out the documentation but no luck. Any help from you would be much appreciated.
Thank you
回答(1 个)
Lexi Howard
2022-9-6
0 个投票
Hi Kavitha, it sounds like you're trying to export a traceability matrix. You can create an HTML report by clicking Export > Generate HTML Report in the Traceability Matrix window toolstrip.
You can also export the traceability matrix to a MATLAB variable that contains the table data by clicking Export > Create MATLAB Variable in the Traceability Matrix window toolstrip.
7 个评论
Kavitha Tulluru
2022-9-6
Lexi Howard
2022-9-6
Hi Kavitha, thanks for clarifying your request. There is no API to export a traceability matrix, nor is it possible to export to Microsoft Excel.
Lexi Howard
2022-9-6
Hi Kavitha, I would like to add that if you export the data to a MATLAB variable that contains table data, you can then programmatically export the table data to Microsoft Excel. For more information, see Write Data to Excel Spreadsheets.
Kavitha Tulluru
2022-9-6
编辑:Kavitha Tulluru
2022-9-6
Kavitha Tulluru
2022-9-6
Shashwat Singh
2023-8-21
So we cannot export the matrix by any MATLAB script . Instead we should do it manually and then write a MATLAB script to convert that export to Excel . Is my understanding correct ?? . can you plz confirm.
Hi @Shashwat
Yes, save the matrix to a MATLAB variable (table) through the GUI and then use writetable to save to excel.
Josh
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!