matlab slice 函数,为什么例子也出错?matlab Help中关于slice作图函数,给出了一个例子然后我copy到命令行里,或者.m中试了试,结果就出来了这么个警告:Subscript indices must either be real positive integers or log

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/12 04:22:51
matlabslice函数,为什么例子也出错?matlabHelp中关于slice作图函数,给出了一个例子然后我copy到命令行里,或者.m中试了试,结果就出来了这么个警告:Subscriptindi

matlab slice 函数,为什么例子也出错?matlab Help中关于slice作图函数,给出了一个例子然后我copy到命令行里,或者.m中试了试,结果就出来了这么个警告:Subscript indices must either be real positive integers or log
matlab slice 函数,为什么例子也出错?
matlab Help中关于slice作图函数,给出了一个例子
然后我copy到命令行里,或者.m中试了试,结果就出来了这么个警告:
Subscript indices must either be real positive integers or logicals.
这是为什么?有点费解.

matlab slice 函数,为什么例子也出错?matlab Help中关于slice作图函数,给出了一个例子然后我copy到命令行里,或者.m中试了试,结果就出来了这么个警告:Subscript indices must either be real positive integers or log
我的运行没问题,建议运行前,将变量清空
加个clear;再试试.