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

Respuestas (1)

Lexi Howard
Lexi Howard el 6 de Sept. de 2022
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 comentarios

Thanks for that but I do not have any problem creating the reports manually. I am unable select view or export that view in an excel programatically. Please re read my query. Thank you
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.
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
Kavitha Tulluru el 6 de Sept. de 2022
Editada: Kavitha Tulluru el 6 de Sept. de 2022
I have created a table and exported data to EXCEL but the requirement I have got is to export that view which we see in traceability table. I should print that report to either html or word or to excel doesn't matter but via API
ok Alex.Thanks for confirming that there is no API to select/export the view we see in traceability matrix. I had a very good search but thought to check from support team as a last try.
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.
Josh Kahn
Josh Kahn el 23 de Ag. de 2023
Editada: Josh Kahn el 23 de Ag. de 2023
Yes, save the matrix to a MATLAB variable (table) through the GUI and then use writetable to save to excel.
Josh

Iniciar sesión para comentar.

Productos

Versión

R2021b

Preguntada:

el 31 de Ag. de 2022

Editada:

el 23 de Ag. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by