Info
此问题已关闭。 请重新打开它进行编辑或回答。
Map & Match from .csv file and change Variable Name in Workspace
1 次查看(过去 30 天)
显示 更早的评论
此 个问题 已被 SOMASHEKAR M
标记
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 个评论
Jeffrey Clark
2022-6-12
@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).
回答(0 个)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!