Import units from excel sheet
이전 댓글 표시
I want to import values and units separately from an excel file:

How can I identify the units and relate them to the values?
Instead of writing COST.u.EUR, is it possible to have it as [COSTvalue Costunits] but identified from the input file?
댓글 수: 10
dpb
2019년 8월 14일
Attach the file (or a short section of one)
Jyotsna Talluri
2019년 8월 20일
Is that a dropdownlist in the currency column??
Aikaterini Mountraki
2019년 8월 20일
편집: Aikaterini Mountraki
2019년 8월 20일
dpb
2019년 8월 20일
Again I reiterate once more..."attach the file"
Aikaterini Mountraki
2019년 8월 21일
편집: Adam Danz
2019년 8월 21일
Aikaterini Mountraki
2019년 8월 21일
dpb
2019년 8월 21일
Ah! I was thinking the problem had to do with importing the spreadsheet owing to the dropdown boxes or somesuch...not to using symbolic TB and the symbolic names feature. Since I don't have that TB, not much I can actually do but to note that in the table the variables are associated by row index across all variables so reference a specific row or set of rows and you'll have all the associated data with it. I dunno how the symbolic variables interact with a table, but I'd probably convert the Currency variable to categorical as well.
To convert to another set of units in a table you would have to either pull out the data to convert to the symbolic form (and I have no idea how it would deal with currency conversion given the rate of conversion isn't a fixed number as with physical units) or have a function that uses the table data and "knows" how to do the allowable conversions of which column is associated with the column containing the currency specification.
Don't know that there is a canned solution.
Aikaterini Mountraki
2019년 8월 22일
dpb
2019년 8월 22일
If you had the financial toolbox, perhaps there's something in it dealing with currency conversions??? I don't know that, just a guess that's where something like that might reside if it exists...
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!