由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 求解:Matlab 积分
相关主题
急问一个Matlab画图问题问个画图的插值问题
derivative of the cubic spline interpolation results请教:3维数据拟合(包子贴)
Help to give an approximation solutionspline interpolation
Hermite interpolationcubic spline interpolation
Interpolation求救,急!!!MATLAB Matrix Numeric Tools Help site
请问谁有tricubic spline interpolation的子程序吗?what is wrong with my matlab?
Three points interpolation:MATLAB积分求教
matlab画复杂边界中的等势线用什么命令?终于完成一模拟matlab基本矩阵运算的C库
相关话题的讨论汇总
话题: variable话题: function话题: matlab话题: linear话题: 20
进入Computation版参与讨论
1 (共1页)
t**i
发帖数: 511
1
I want to use linear interpolation to make a function f, then intergrate it,
but matlab says that it is a variable, for example, the code is:
a=[1,2,9,20];
b=[2.5,3.4,4.5,4.8];
f=@(c) interp1(a,b,c,'linear');
% intergate f from 1 to 20
quad(@f,1,20)
the error is:
"f" was previously used as a variable,
conflicting with its use here as the name of a function or command.
求教:怎么才能改进,让f变为function,而不是variable?
Thanks a lot for your answering!
1 (共1页)
进入Computation版参与讨论
相关主题
终于完成一模拟matlab基本矩阵运算的C库Interpolation求救,急!!!
Analytic solution for an ODE请问谁有tricubic spline interpolation的子程序吗?
请教:如何用least square approach解超定方程组Three points interpolation:
[转载] 有人知道如何把MATLAB .M 文件转换成C吗?matlab画复杂边界中的等势线用什么命令?
急问一个Matlab画图问题问个画图的插值问题
derivative of the cubic spline interpolation results请教:3维数据拟合(包子贴)
Help to give an approximation solutionspline interpolation
Hermite interpolationcubic spline interpolation
相关话题的讨论汇总
话题: variable话题: function话题: matlab话题: linear话题: 20