top of page
Search
![How to Create Matrix and Vector in modern Fortran (from 2003)](https://static.wixstatic.com/media/5ca1ad_0cc93968651742bea92b878e28e9972c~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_0cc93968651742bea92b878e28e9972c~mv2.webp)
Adisorn O.
Jul 10, 20241 min read
How to Create Matrix and Vector in modern Fortran (from 2003)
The way modern Fortran provides to create matrix and vector is more convenient, let's check the example below. OUTPUT: A = 1.00000000 ...
5 views
![LAPACK Package Testing for LU Solver Ax = b](https://static.wixstatic.com/media/5ca1ad_f540073fdcd649b085ba136f775e000b~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_f540073fdcd649b085ba136f775e000b~mv2.webp)
Adisorn O.
Jul 9, 20242 min read
LAPACK Package Testing for LU Solver Ax = b
To solve the linear system Ax = b, LAPACK provide a function dgesv() see more detail https://netlib.org/lapack/explore-html-3.6.1/d7/d3b/...
5 views
![How to pass array variables to F90 subroutine?](https://static.wixstatic.com/media/5ca1ad_9463908289d044f586da1b73445461a6~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_9463908289d044f586da1b73445461a6~mv2.webp)
Adisorn O.
Jul 8, 20241 min read
How to pass array variables to F90 subroutine?
Consider this example of fix-sized and allocatable array case I: Fix-sized array Case II: Allocatable array One important thing to remark...
10 views
![Compute the Minimum Distance between 2 sets of coordinates](https://static.wixstatic.com/media/5ca1ad_78d5cac18c9f4418be27c5eb18504980~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_78d5cac18c9f4418be27c5eb18504980~mv2.webp)
Adisorn O.
Feb 24, 20241 min read
Compute the Minimum Distance between 2 sets of coordinates
The code will compute and get the minimum distance between 2 sets of arbitrary numbers of points in 2D space. It also draws the lines...
6 views
![Introduction to Julia and comparison with MATLAB syntax](https://static.wixstatic.com/media/5ca1ad_84abf6a0b4f048188cfcce662da1e9e1~mv2.png/v1/fill/w_360,h_140,fp_0.50_0.50,q_95,enc_auto/5ca1ad_84abf6a0b4f048188cfcce662da1e9e1~mv2.webp)
Adisorn O.
Feb 23, 20243 min read
Introduction to Julia and comparison with MATLAB syntax
OpenAI. (2024). ChatGPT (4) [Large language model]. https://chat.openai.com Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and Alan...
13 views
![How to Apply Gauss Elimination in the Simplex Algorithm](https://static.wixstatic.com/media/5ca1ad_e484a660126449979d6e1041aa9bb790~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_e484a660126449979d6e1041aa9bb790~mv2.webp)
Adisorn O.
Feb 17, 20240 min read
14 views
![A Unified Method for Numerical Integration](https://static.wixstatic.com/media/5ca1ad_c37aabc31e234086a65780cad4650edf~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_c37aabc31e234086a65780cad4650edf~mv2.webp)
Adisorn O.
Dec 27, 20231 min read
A Unified Method for Numerical Integration
Trapezoidal rule Simpson's 1/3 rule
10 views
![F90 subroutine for Gauss Elimination with partial pivoting](https://static.wixstatic.com/media/5ca1ad_a9a15e99cf5e435a89e2165255cdabf8~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_a9a15e99cf5e435a89e2165255cdabf8~mv2.webp)
Adisorn O.
Dec 6, 20232 min read
F90 subroutine for Gauss Elimination with partial pivoting
! Main Program PROGRAM SolveLinearSystem IMPLICIT NONE REAL, DIMENSION(3, 3) :: A REAL, DIMENSION(3) :: b INTEGER :: n ! Define the...
9 views
![Passing functions as arguments in MATLAB](https://static.wixstatic.com/media/5ca1ad_f33934e2944647e992e5c7185b4b7e0b~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_f33934e2944647e992e5c7185b4b7e0b~mv2.webp)
Adisorn O.
May 10, 20231 min read
Passing functions as arguments in MATLAB
MATLAB allows us to pass functions as arguments of another function. This is very useful when we call other functions (for example,...
26 views
![Matrix Representation of a Linear System for Multiple Load Cases Analysis](https://static.wixstatic.com/media/5ca1ad_f0a163f1a8ca495f83b7d7476a79acea~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_f0a163f1a8ca495f83b7d7476a79acea~mv2.webp)
Adisorn O.
May 2, 20231 min read
Matrix Representation of a Linear System for Multiple Load Cases Analysis
In many engineering design problems, we often have to solve the same linear system for variable load cases. As shown in the figure below,...
20 views
![Linear Systems: LU Factorization & Its benefit over Gauss Elimination](https://static.wixstatic.com/media/5ca1ad_5b7482740bac496eb61820e7cff68f74~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_5b7482740bac496eb61820e7cff68f74~mv2.webp)
Adisorn O.
May 1, 20230 min read
9 views
![Linear Systems: Gauss Elimination with Partial Pivoting](https://static.wixstatic.com/media/5ca1ad_9f081eef9a4143ea8b8c2f3fe9fd745f~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_9f081eef9a4143ea8b8c2f3fe9fd745f~mv2.webp)
Adisorn O.
May 1, 20230 min read
16 views
![MATLAB's Truncation Loop for Tensor Products](https://static.wixstatic.com/media/5ca1ad_da1ea48eb873455296916599065355bb~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_da1ea48eb873455296916599065355bb~mv2.webp)
![Solving Linear System: Gauss Elimination Method](https://static.wixstatic.com/media/5ca1ad_81ba1bf6982041a18bb583a067894953~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_81ba1bf6982041a18bb583a067894953~mv2.webp)
Adisorn O.
Apr 30, 20230 min read
13 views
![Newton-Raphson Method for solving nonlinear equation system and unconstrainted optimization problem](https://static.wixstatic.com/media/5ca1ad_e6b90c73a12243f080c2584d04f0ffbb~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_e6b90c73a12243f080c2584d04f0ffbb~mv2.webp)
Adisorn O.
Apr 29, 20231 min read
Newton-Raphson Method for solving nonlinear equation system and unconstrainted optimization problem
[updated 6.12.2023] For optimization problem, the optimum solution of (x1,x2) is found by setting the derivative of objectives of...
18 views
![Getting to know MATLAB's Cell](https://static.wixstatic.com/media/5ca1ad_7391bac72b704235a60c1951b805836d~mv2.png/v1/fill/w_454,h_299,fp_0.50_0.50,q_95,enc_auto/5ca1ad_7391bac72b704235a60c1951b805836d~mv2.webp)
Adisorn O.
Apr 17, 20231 min read
Getting to know MATLAB's Cell
Sometimes we want to store various data types into a single array. Thinking of a container that can store various things in separate...
14 views
![HOW TO REARRANGE MATRIX's ROWS & COLUMNS IN MATLAB](https://static.wixstatic.com/media/5ca1ad_4f48599213f84824a9bfb4ebdd53afb7~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_4f48599213f84824a9bfb4ebdd53afb7~mv2.webp)
![MATLAB's sum() function](https://static.wixstatic.com/media/5ca1ad_721b7755d52a49cda3483d0de9408a5a~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_auto/5ca1ad_721b7755d52a49cda3483d0de9408a5a~mv2.webp)
Adisorn O.
Mar 17, 20231 min read
MATLAB's sum() function
MATLAB provides a simple but efficient sum( ) function to sum column or row vector, as well as all elements in arrays. Syntax:...
14 views
bottom of page