Function FLOAT in FORTRAN to Matlab
Show older comments
Hi everyone,
I've this Fortran code:
IF(j<11) THEN
r = FLOAT(j)*0.3
ELSEIF(j<=20)THEN
r = FLOAT(j)/5.0*3.0
ELSEIF(j<=30)THEN
r = FLOAT(j)*2.0
ELSEIF(j<=40) THEN
r =FLOAT(j)*5.0
How can I traslate this code in Matlab? In particular the function "FLOAT"
Accepted Answer
More Answers (0)
Categories
Find more on Fortran with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!