How do I generate executable code from imported data?
古いコメントを表示
I have an xlsx file with various data for the calculation I'd like to conduct with my Matlab code. This file also contains the relevant formulas. Is there a way to import those formulas from xlsx (having them as a string) and convert them to normal code thats executable?
5 件のコメント
Dyuman Joshi
2023 年 11 月 27 日
編集済み: Dyuman Joshi
2023 年 11 月 28 日
Can it be done? Yes. Is it recommended? No.
Though, you could define the formulae in the syntax of function handles and utilize str2func to convert them to anonymous functions, and use accordingly.
Johannes
2023 年 11 月 27 日
Dyuman Joshi
2023 年 11 月 27 日
Can you show what the formulas look like? It will even better if you could attach the excel file.
Dyuman Joshi
2023 年 11 月 27 日
Sorry, I was away from my PC due to some other work. Please check my answer below.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!