Hello All,
I am trying to read simulation parameters from an excel sheet, where i would like to create multiple simulation configurations as separate sheets.
in this example I have an excel sheet with the following data
VariableName Value Unit
Mass 1500 Kg
TireDiameter 1 m
The following matlab script executes successfully in matlab, but when I run it as an initialization command in Plecs it gives an error ‘xlsread’ undefined.
[A,T] = xlsread(‘TestTable.xlsx’,‘sheet1’,‘A2:B3’);
for i = 1:length(A)
assignin(‘base’,T{i},A(i))
end
is it possible to read an excel sheet data in Plecs scripts? and is there a list of supported matlab commands?