how to define the following function

How to define the following function in MATLAB
f(x) = 1 for 0<= x <= pi
f(x) = 1 for 0<= x <= pi

Antworten (1)

Thorsten
Thorsten am 21 Jan. 2013

0 Stimmen

if 0 <= x && x <= pi, y = 0; end

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 21 Jan. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by