Passing functions as arguments in MATLAB

top of page

Search

MATLAB allows us to pass functions as arguments of another function. This is very useful when we call other functions (for example,...

Adisorn O.

- May 10, 2023
- 2 min

Genetic Algorithm: Pseudo Code

(The code as generated by CHAT-GPT with my commentary as shown with ##) # Define parameters for Genetic Algorithm ## Commentary: This...

9 views

Adisorn O.

- May 7, 2023
- 2 min

Understanding Genetic Algorithm (GA)

Adisorn Owatsiriwong Computer programs that "evolve" in ways that resemble natural selection can solve complex problems even their...

40 views

Adisorn O.

- May 2, 2023
- 1 min

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,...

18 views

Adisorn O.

- May 1, 2023
- 0 min

7 views

Adisorn O.

- May 1, 2023
- 0 min

7 views

Adisorn O.

- May 1, 2023
- 0 min

16 views

Adisorn O.

- Apr 29, 2023
- 1 min

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...

16 views

Adisorn O.

- Apr 17, 2023
- 1 min

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...

12 views

Adisorn O.

- Apr 3, 2023
- 1 min

DERIVATION OF ELEMENT STIFFNESS AND EQUIVALENT NODAL FORCE FOR BERNOULLI's BEAM ELEMENT

This article describes the stiffness matrix and equivalent nodal forces for Bernoulli's beam element. The derivation was formulated using...

4 views

Adisorn O.

- Apr 2, 2023
- 1 min

MATRIX STRUCTURAL ANALYSIS: PART 1

A short course on Matrix Structural Analysis. This part involves planar trusses and space trusses. The aim is to familiarize the learners...

10 views

Adisorn O.

- Mar 30, 2023
- 1 min

WIND AND SEISMIC LOADS WITH ETABS USING STATIC APPROACH

A workshop presented by Dr. Amnart Khampanit to undergrad students on wind and seismic loads calculation using ETABS. The presentation...

8 views

Adisorn O.

- Mar 30, 2023
- 1 min

Gradient Descent Method with Examples

Gradient descent, or 'Downhill algorithm,' is one of the simplest algorithms for optimization problems. The algorithm searches for the...

14 views

Adisorn O.

- Mar 26, 2023
- 1 min

Steps to Seismic Design using Structural Dynamics

This presentation introduces steps to perform seismic design using structural dynamics. The design procedure follows ASCE 7, emphasizing...

7 views

Adisorn O.

- Mar 17, 2023
- 1 min

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

Adisorn O.

- Mar 9, 2023
- 1 min

SHAPE OPTIMIZATION OF A 3-BAR TRUSS SYSTEM

We apply a non-linearly constrained optimization to a simple 3-bar truss system for this example. The following MATLAB scripts are...

17 views

bottom of page