Output video file name to Excel with other data from process results

조회 수: 1 (최근 30일)
Walter Cromer
Walter Cromer 2023년 4월 4일
답변: Walter Roberson 2023년 4월 4일
I am using the Image Processing Toolbox and read in a video that I process. As my process progresses through the frames, it stores key data about specific frames into a matrix.
At the conclusion of the process, I write data into an Excel file.
I want to put the video file name in a column in the Excel file. The .Name property is a character string.
I thought I could just append the name value to a new column in my matrix and then use writematrix to create the Excel file. But, I don't know how to get a character string into a column in a matrix.
Help will be greatly appreciated.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 4월 4일
In order to put text into the same array as numeric data and use writematrix() to write it all out... then you will need to convert the numeric part to text.
I would suggest that you instead consider using table() objects and use writetable(),

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by