Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Map & Match from .csv file and change Variable Name in Workspace
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Diese(r) Frage wurde durch SOMASHEKAR M
markiert
I would like to read a .mat file which consists of all structure field names eg a,b,c etc. I have a .csv file in which Column 1 has the same field names and in Column 2 I have the names to be replaced. Upon every instance of Column 1 names I would like to replace the workspace variabe name with corresponding column 2 value.
4 Kommentare
Jeffrey Clark
am 12 Jun. 2022
@SOMASHEKAR M, see my second example above IF you are talking about fields of a Structure array - MATLAB (mathworks.com). It would be something similar if you are talking about colums of a Table array with named variables that can contain different types - MATLAB (mathworks.com).
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!