with x calculated f(x)

2 次查看(过去 30 天)
valerio
valerio 2013-10-28
回答: ahmed 2013-10-28
Hallo can anyone help me? If I've a point x ,how to calculate just the specific value of f(x) in matlab?

回答(1 个)

ahmed
ahmed 2013-10-28
if you mean function with input (ex:R) and output (ex:X)
use this example :
function [x] = cal(r)
% This is an example function.
% I have no idea what r or x are.
x = r.*sin(r);
(X is the output) (cal is the function to be called) (R= is the input)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by