The MATLAB code running on my MPS expects a structure with two fields: "field1" and "Field2" as input. It is important that the second field is written with a capital F. I tried to create this structure by implementing the following Java class:
public class MyStruct { private String field1; public String getField1() { return field1; } public void setField1(String field1) { this.field1 = field1; } private double Field2; public double getField2() { return Field2; } public void setField2(double field2) { Field2 = field2; }}
But I notice that on the MATLAB side both fields in the stuct start with a lower case f.
Best Answer