早教吧作业答案频道 -->其他-->
怎么用MATLAB求解多输入函数的运算(形如下面分子分母上都有输入变量)例如:y=x.^2/sin(x)x=123456
题目详情
怎么用MATLAB求解多输入函数的运算(形如下面 分子分母上都有输入变量)
例如:y=x.^2/sin(x) x=1 2 3 4 5 6
例如:y=x.^2/sin(x) x=1 2 3 4 5 6
▼优质解答
答案和解析
function [ y ] = f( x )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
y=x.^2/sin(x)
end
再执行程序 f([1 2 3 4 5 6])
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
y=x.^2/sin(x)
end
再执行程序 f([1 2 3 4 5 6])
看了 怎么用MATLAB求解多输入...的网友还看了以下: