Hey Guys,(adsbygoogle = window.adsbygoogle || []).push({});

I am converting my code from matlab to fortran. Now in matlab it is rather convenient to write a function which returns multiple variables.

I believe a function in fortran can return only one variable. I think a subroutine can return multiple variables. I was not able to find any syntax help for fortran to write such a routine. I was curious if anyone has any insight into this.

Thanks

Aditya

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Return Multiple variables in Fortran

Loading...

Similar Threads - Return Multiple variables | Date |
---|---|

MATLAB vector multiplication | Aug 28, 2017 |

Mathematica : Easy? Function that returns and increases counter. | Feb 15, 2014 |

Feynmf returns Feynman graph:\Delta , no diagram | Jul 16, 2012 |

Help: matlab max return wrong value? | Jul 12, 2012 |

Financial contract 2 - Average annual return computed in two ways. | Jun 21, 2012 |

**Physics Forums - The Fusion of Science and Community**