eval and inline function
조회 수: 4 (최근 30일)
이전 댓글 표시
clc
clear all
close all
a=0;
b=2;
y=5;
x=1/2;
f3=inline('1/(sqrt(x^2+y^2)');
[f6]=eval(f2)
??? Undefined function or method 'eval' for input arguments of type 'inline'.
댓글 수: 1
답변 (1개)
Fangjun Jiang
2019년 11월 27일
f3=inline('1/(sqrt(x^2+y^2))');
x=1/2;
y=5;
f3(x,y)
댓글 수: 3
Guillaume
2019년 11월 27일
"i want use eval"
Why? It's the one function that beginners should never use.
참고 항목
카테고리
Help Center 및 File Exchange에서 Function Creation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!