File Exchange

## Modal Assurance Criterion (MAC)

version 1.0.0.0 (2.1 KB) by Mohammad Farshchin

This function is to compute the Modal Assurance Criterion (MAC) between mode shapes

Updated 23 Sep 2015

This function is to compute and plot Modal Assurance Criterion (MAC) matrix between identified mode shapes.

### Cite As

Mohammad Farshchin (2020). Modal Assurance Criterion (MAC) (https://www.mathworks.com/matlabcentral/fileexchange/53173-modal-assurance-criterion-mac), MATLAB Central File Exchange. Retrieved .

Dr. Erol Kalkan, P.E.

### Dr. Erol Kalkan, P.E. (view profile)

The MAC equation mAc= (abs(Phi1'*Phi2))^2/((Phi1'*Phi1)*(Phi2'*Phi2))

mAc= (abs(Phi1.'*conj(Phi2)))^2/((Phi1.'*conj(Phi1))*(Phi2.'*conj(Phi2)))

MatLAB transpose of a complex-valued array is not only a transpose but also complex conjugate. What I meant is Phi1' is actually not only transpose of Phi1 but also its complex conjugate.

tuan tran

### tuan tran (view profile)

It looks good.
How can we calculate crossMAC?

godfreap

### godfreap (view profile)

There is basically no instruction to go along with this, so good luck figuring out what to do and what goes where. There's one example, but so deconstructed and without context that it does not matter. If the author is still active, I highly recommend he add some sort of tutorial - or at least a proper explanation - to this file so that people who want to use it know what they are doing.

Da Cao

fantastic

mati ullah

### mati ullah (view profile)

How can we calculate MAC between damaged and undamaged structures mode shapes?

Wentao Zhao

### Wentao Zhao (view profile)

Unzip all files to the same folder then run the code.

Gaia C

### Gaia C (view profile)

It doesn't work, the error is:
"Not enough input arguments.

Error in MAC (line 11)
for I=1:size(phi,2)"

Can you help me?

Bo Miao

### Bo Miao (view profile)

Michal Golebiewski

Arun Sharma

### Arun Sharma (view profile)

How to get the modal shape matrix in Abaqus?

There is a mat file in the zip file you download. This file contains the data.

Arun Sharma

### Arun Sharma (view profile)

Can someone provide a demo data as an example to learn and implement it?
Contact id: arunme65@gmail.com

Jasper Walden

smita kaloni

### smita kaloni (view profile)

Make sure that you save MAC.m and ModeShapes.mat in the same folder and set that folder as MATLAB working directory or add a path to it. Then: load ModeShapes.mat;MAC_Matrix=MAC(phi)

it doesnot work, can u help me?

Nima Nazemi

Shima

Very Useful.

Jiawei Liu

### Jiawei Liu (view profile)

Convenient. Thanks.

qiong zou

Fabricio Ortiz

### Fabricio Ortiz (view profile)

Thank's a lot!
It was very usefull during in course os structural dynamics.