できれば、エラーメッセージも記載してくださいませ。ご質問からは
Parameter1 = str2double(extractBetween(SimulationData,VariableName,VariableUnit));
でエラーとなっているようにも読み取れますが・・ str2double 関数側なのか、extractBetween 関数側なのか分かりません。
閲覧者も同じ内容で実行できるように、疑似データもあるとエラーの原因を見つけられやすいと思いますよ。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!