Function FLOAT in FORTRAN to Matlab
Afficher commentaires plus anciens
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"
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Fortran with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!