当x,xq:数字数组,y:字符串数组时,Matlab中的interp1(x,y,xq)

时间:2018-09-13 18:20:37

标签: matlab interpolation

interp1:是数字数组,而interp1(x,y,xq):是字符串数组时,有没有办法将x,xq函数用作y

或者您能想到一种等效的矢量方式吗?

我不想转换为表格并使用tablelookup

示例:

x = [1, 3, 4, 7, 8];
y = ["A", "A", "B", "C", "C"];
xq = [2.5, 5, 6.7];

0 个答案:

没有答案
相关问题