C TO STATEFLOW HELP

function [f, a] = fcn(y) %#codegen
if y<1e-4
y=1e-4;
end
if y<1.5
f=500*(1.5-y)
a=sqrt(1.5^3/y);
else
f=0;
a=1.5;
end
HOW DO I MODEL THIS IN STATEFLOW ? I AM NOT GETTING THE SAME GRAPH HELP HELP PLEASE !!!!!!

Answers (0)

This question is closed.

Asked:

on 4 Jan 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!