Info

This question is closed. Reopen it to edit or answer.

Help with developing a program code

2 views (last 30 days)
Janez Novak
Janez Novak on 18 Nov 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
I´m trying to write a function which will calculate y to given conditions. Can you help me to fill in function?
function [y]=f(x)
if x>=9
y = 15*(4*x)^(1/2)+10;
end
if (0<=x<9)
y=10*x +10;
end
if (x<0) y=10;
end

Answers (0)

Community Treasure Hunt

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

Start Hunting!