Borrar filtros
Borrar filtros

How to update the text field from the loaded excel file in MATLAB?

1 visualización (últimos 30 días)
I encountered a problem to update the text field from the loaded excel file in MATLAB.

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Oct. de 2016
[num, txt, raw] = xlsread('TheFilename.xlsx');
raw{7,11} = 'Some New String'; %update the location in memory
xlswrite('TheFilename.xlsx', raw) %store everything back
OR,
newcontent = 'Some New String';
xlswrite('TheFilename.xlsx', newcontent, 'K7:K7'); %update only the one location
  2 comentarios
KenL
KenL el 3 de Oct. de 2016
Thanks for the prompt response. I managed to update the field at location of raw{7,11} but all my data before such location are replaced with "NaN". Please advise.
KenL
KenL el 3 de Oct. de 2016
Hi...I did a mistake. Now, problem solved. Thanks.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by