what is that problem? "Optimization running. Error running optimization. Undefined function 'power' for input arguments of type 'timeseries'"
조회 수: 2 (최근 30일)
이전 댓글 표시
how can I solve this problem
Optimization running. Error running optimization. Undefined function 'power' for input arguments of type 'timeseries'
I am using matlab R2016a, using genetic algorithm to get the minimum values for PID controller in a switched reluctance motor. please anyone can help tell me how to solve this problem? thanks
댓글 수: 0
채택된 답변
Walter Roberson
2016년 8월 9일
Consider for example,
a = timeseries(1:10);
a .^ 2
then that would generate that error, because you are trying to square the timeseries object.
Possibly you want to square the data in the object:
a.Data .^ 2
댓글 수: 2
Walter Roberson
2016년 8월 9일
What is tout? What is spo? Are those created by "To Workspace" blocks in your simulation ?
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Specialized Power Systems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!