Hi everyone, how to use modalfit command to estimate modal vectors from a frf matrix?

조회 수: 3 (최근 30일)
Hi everyone, how to use modalfit command to estimate modal vectors from a frf matrix?
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 9월 23일
You have not posted your code or a copy of the error message.

댓글을 달려면 로그인하십시오.

답변 (1개)

Ayisha Nayyar
Ayisha Nayyar 2018년 9월 23일
편집: Walter Roberson 2018년 9월 23일
sorry Walter,
here is my code, where, b1 is a FRF matrix of size 2500x21, where 2500 represents frequency range and 21 are the points on beam, on which response is collected by accelerometer.
CODE
function [fn,dr,ms]= modalfit(frf,f,fs,mnum,Name,value)
frf=b1;
f=1:2500;
fs=6400;
mnum=6;
[fn,dr,ms]=modalfit(frf,f,fs,mnum,'FitMethod','lsce');
end
error message:
mnum=6;
[fn,dr,ms]=modalfit(frf,f,fs,mnum,'FitMethod','lsce');
Undefined function or variable 'b1'.
Error in modalfit (line 2)
frf=b1;
  댓글 수: 5
Walter Roberson
Walter Roberson 2018년 9월 23일
I suspect that you are using
function [fn,dr,ms] = modalfit(b1)
instead of what I wrote,
function [fn,dr,ms] = modalfit_b(b1)
Ayisha Nayyar
Ayisha Nayyar 2018년 9월 24일
Thanks for your help Walter,even if i wrote: function [fn,dr,ms] = modalfit(b1)
There is error,i.e. function [fn,dr,ms] = modalfit(b1) | Error: Function definitions are not permitted in this context.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by