matlab Too many output arguments.function R3(x)R3=[cos(x),sin(x),0;-sin(x),cos(x),0;0,0,1]z=R3(0)Error using ==> R3Too many output arguments.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/29 01:54:05
matlabToomanyoutputarguments.functionR3(x)R3=[cos(x),sin(x),0;-sin(x),cos(x),0;0,0,1]z=R3(0)Errorusi

matlab Too many output arguments.function R3(x)R3=[cos(x),sin(x),0;-sin(x),cos(x),0;0,0,1]z=R3(0)Error using ==> R3Too many output arguments.
matlab Too many output arguments.
function R3(x)
R3=[cos(x),sin(x),0;-sin(x),cos(x),0;0,0,1]
z=R3(0)
Error using ==> R3
Too many output arguments.

matlab Too many output arguments.function R3(x)R3=[cos(x),sin(x),0;-sin(x),cos(x),0;0,0,1]z=R3(0)Error using ==> R3Too many output arguments.
function R3(x)
R3=[cos(x),sin(x),0;-sin(x),cos(x),0;0,0,1]
改成
function y=R3(x) %加个y=
y=[cos(x),sin(x),0;-sin(x),cos(x),0;0,0,1]%前面改成y=