How can I plot a function that has two variables without getting "undefined variable" error?

 채택된 답변

Torsten
Torsten 2022년 4월 18일

0 개 추천

fun = @(x) integral(@(omega)cos(omega*x).*sin(omega)./omega,1e-10,8,'ArrayValued',true);
x = -2:0.01:2;
plot(x,fun(x))

추가 답변 (1개)

Walter Roberson
Walter Roberson 2022년 4월 18일
편집: Walter Roberson 2022년 4월 18일

0 개 추천

syms omega x

카테고리

질문:

2022년 4월 18일

답변:

2022년 4월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by