Skip to content

michaelkonecny/matlab-fortran-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

MATLAB - Fortran cheat sheet

It's sometimes difficult to remember the correct syntaxes in the two languages.

This sheet contains some basic examples of the same operations written in Matlab and Fortran.

Element-wise multiplication/division

Matlab:

A = [1 2 3];
B = [4 5 6];
C = A.*B  % [4 10 18]

Fortran:

A = (/1, 2, 3/)
B = (/4, 5, 6/)
C = A*B  ! (/4, 10, 18/)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published