For a research problem in Fluid mechanics which code is most preferable ?Coding in fortran or in matlab.Will there be a difference in the results?
    1 visualizzazione (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    revathy M
 il 21 Ott 2017
  
    
    
    
    
    Risposto: Walter Roberson
      
      
 il 21 Ott 2017
            Have written code in Mat-lab. My reference paper results are based on code written in fortran. I get a varying results.My execution time is more in mat lab compared to fortran. I see many Researchers from IIT's and IIsc are still working in fortran code.Which is better matlab or fortran?My problem doesn't have any simulation.
0 Commenti
Risposta accettata
  Walter Roberson
      
      
 il 21 Ott 2017
        Fortran is compiled; it is expected that well-written Fortran code that calls upon the same libraries that MATLAB calls upon would be faster than MATLAB.
Especially when doing non-linear calculations, the order of calculations can matter a lot in floating point. http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F
MATLAB is not necessarily better or worse than Fortran. MATLAB typically has a faster development cycle; Fortran tends to execute more quickly. But good MATLAB can be faster than weak Fortran.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Fortran with MATLAB in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

