Use Preelokup and n-Direct Lookup Table blocks in Simulink without interpolation
Hi,
I want to create a lookup table that based on some inputs, where the indeces of the lookup table are found and the field value is output.
I attach the lookup table I made with its corresponding breakpoints.
I am using two Preelokup blocks to find the indeces of this 2D table. These indices are used then as input to the Direct LookupTable block (see the attached block diagram picture).
My issue is that if I input e.g., 28 in "in1", the index found is correct. However, if I put a value within two breakpoint values (e.g., 30) it uses interpolation, flat or rounding, and I would like to avoid that. Is there a way where if the input value does not match with any of the breakpoints array it simply does not return any index or the Lookup table simply returns no value or a zero?
Thanks in advanceHi,
I want to create a lookup table that based on some inputs, where the indeces of the lookup table are found and the field value is output.
I attach the lookup table I made with its corresponding breakpoints.
I am using two Preelokup blocks to find the indeces of this 2D table. These indices are used then as input to the Direct LookupTable block (see the attached block diagram picture).
My issue is that if I input e.g., 28 in "in1", the index found is correct. However, if I put a value within two breakpoint values (e.g., 30) it uses interpolation, flat or rounding, and I would like to avoid that. Is there a way where if the input value does not match with any of the breakpoints array it simply does not return any index or the Lookup table simply returns no value or a zero?
Thanks in advance Hi,
I want to create a lookup table that based on some inputs, where the indeces of the lookup table are found and the field value is output.
I attach the lookup table I made with its corresponding breakpoints.
I am using two Preelokup blocks to find the indeces of this 2D table. These indices are used then as input to the Direct LookupTable block (see the attached block diagram picture).
My issue is that if I input e.g., 28 in "in1", the index found is correct. However, if I put a value within two breakpoint values (e.g., 30) it uses interpolation, flat or rounding, and I would like to avoid that. Is there a way where if the input value does not match with any of the breakpoints array it simply does not return any index or the Lookup table simply returns no value or a zero?
Thanks in advance simulink, lookuptable MATLAB Answers — New Questions