May I know how convert tuple to dictionary in MATLAB
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Please see attached xls file. I want to convert tuple in column B to dictionary
0 Kommentare
Antworten (1)
Walter Roberson
am 21 Sep. 2021
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/744999/New%20Microsoft%20Office%20Excel%20Worksheet.xlsx';
T = readtable(filename, 'readvariablenames', false);
dict = containers.Map(T{:,1}, str2double(T{:,2}))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Application Deployment finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!