필터 지우기
필터 지우기

Execution of script rainflow as a function is not supported, then gives the path of the rainflow.m file.

조회 수: 3 (최근 30일)
When running my own script or a demo script, i get the same eror message mentioned in the summary (Execution of script rainflow as a function is not supported:), why is this? ay help would be much appreciated.
  댓글 수: 7
Dyuman Joshi
Dyuman Joshi 2024년 1월 30일
편집: Dyuman Joshi 2024년 1월 30일
That's all alright, but it does not answer the question I asked nor provides the information I requested.
Run the command "cd" in the command window to see what the current directory of MATLAB is.
If it is same as the directory you have mentioned, that's good. If it is not, you will have to either change the current directory or add that directory to the current path.
I'll reiterate
> What is the command you use to call/run the script?
and
> please share the output of -
which rainflow.m -all
James Morrison
James Morrison 2024년 1월 30일
hi, apologies the output of the command is :
/Users/jamesmorrison/Library/Application Support/MathWorks/MATLAB Add-Ons/Collections/Rainflow Counting Algorithm/rainflow.m.
and when I type cd it is not the correct directory, as i am a novice, I am unsure on how to change this.

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

답변 (1개)

Dyuman Joshi
Dyuman Joshi 2024년 1월 30일
Follow instructions from this documentation page to add the directory you have mentioned to the search path of MATLAB and save it for future sessions - https://in.mathworks.com/help/matlab/matlab_env/add-remove-or-reorder-folders-on-the-search-path.html

카테고리

Help CenterFile Exchange에서 Vibration Analysis에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by