How do i extract values from a name-value pair argument?
Mostrar comentarios más antiguos
Can someone help me on this please. my function is this; fid=fopen('20160613.XVI'); C=textscan(fid,'%s%s','CollectOutput',true,'Delimiter',';'); data=C{1}(71:73,1); [~]=fclose(fid);
It returns the following; {'CouchShiftLat=-0.17' } {'CouchShiftLong=-0.08' } {'CouchShiftHeight=-0.09'} But i needed only the values; -0.17,-0.08 and -0.09.
3 comentarios
Stephen23
el 2 de Abr. de 2018
@AUWAL ABUBAKAR: please upload your data file by clicking the paperclip button.
AUWAL ABUBAKAR
el 2 de Abr. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Text Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!