필터 지우기
필터 지우기

Sir I found error when I am using these codes. Codes are shown in the figure......

조회 수: 2 (최근 30일)
In this the problem is occuring is matrix dimension is not satisfied.....So how I do properly???
  댓글 수: 1
Stephan
Stephan 2018년 10월 2일
Your chances for getting an answer will rise if you attach code and data instead of screenshots.

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

채택된 답변

Guillaume
Guillaume 2018년 10월 2일
All these squigly lines and orange marks in your screenshot is matlab telling you that there may be problems with your code. You should follow the advice that the editor give you and endeavour to have no warning.
With regards to your error, all we can say is that x is not a vector with 2 column, so when it's transposed it's not a vector with 2 rows and thus does not have the same number of rows as aS(:, j). Since only you know what x is, we can't tell you how to fix it, particularly since the only thing you've provided is pictures of the code, not the actual code itself. I would recommend you learn how to debug your code. Step through the code and check that it actually does what you meant it to do by looking at the state of the variables.
Note that if it's not your code and that it was written on matlab R2016b or later, it's possible that the offending line use implicit expansion, in which case
bs(j) = sum(bsxfun(@minus, x', as(:, j)) .^ 6);
may fix the error. If that is the case, you will most likely encounter the same problem in many more places.
  댓글 수: 2
Guillaume
Guillaume 2018년 10월 3일
Again, screenshots are useless us. We can't copy code from screenshots.
It doesn't look like you're in the debugger. Follow the instructions in this page to learn how to debug your code.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by