I have an Excel sheet from where I import values to be used in a 1D lookup table. The input is a temperature which is 0-95 in steps of 5. The output is kinematic viscosity going from 1.751 to 0.306. When running my simulation I get the error that my values "must be monotonically increasing".
How do I use the lookup table when my values are decreasing?

답변 (2개)

Michael Haderlein
Michael Haderlein 2014년 10월 17일

0 개 추천

You can flip your data, just use the flipud for column arrays and fliplr for line arrays.
Ole Møller Christensen
Ole Møller Christensen 2014년 10월 17일
편집: Ole Møller Christensen 2014년 10월 17일

0 개 추천

The problem was just a bad input into the lookup table. Switched the temperature and kinematic viscosity (had temperature as table data and not breakpoints). This solved the problem.

카테고리

질문:

2014년 10월 17일

편집:

2014년 10월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by