matlab中调用interp1函数时出现使用 griddedInterpolant 网格矢量未定义与给定值匹配的点网格时怎么处理?求大神解答
在这里插入代码片
```drv_pwr_dmd_simu=drv_ctrl_pwr_dmd_simu
prb.W{1}=interp1(sch_cycle(:,1),drv_pwr_dmd_simu,0:prb.N/prb.Ts);
prb.W{2}= interp1(sch_cycle(:,1),drv_pwr_dmd_simu,0:prb.N/prb.Ts);%mode3pdmd;
prb.W{3}= interp1(sch_cycle(:,1),drv_pwr_dmd_simu,0:prb.N/prb.Ts);%mode4pdmd;
prb.W{4}= interp1(sch_cycle(:,1),sch_cycle(:,2),0:prb.N/prb.Ts);
出错提示:
错误使用 griddedInterpolant
网格矢量未定义与给定值匹配的点网格。出错 interp1 (line 183)
F = griddedInterpolant(X,V,method);![出错提示](https://img-blog.csdnimg.cn/20191213221315471.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0dVRmlnaHRpbmc=,size_16,color_FFFFFF,t_70)