Plotting, keep getting error that matrix dimensions must agree

조회 수: 3 (최근 30일)
Stephen Dahl
Stephen Dahl 2017년 1월 14일
댓글: the cyclist 2022년 1월 30일
I keep getting the same error. I have changed the functions and limits and it worked but it will not work with the functions I need to plot. Not sure what to do, so any help is appreciated.
Thanks.
<<
>>
  댓글 수: 1
the cyclist
the cyclist 2017년 1월 14일
편집: the cyclist 2017년 1월 14일
In the future, please upload the code itself, rather than an image of the code. Then we can paste your code directly into MATLAB, which makes it much easier for us to help you.

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

채택된 답변

the cyclist
the cyclist 2017년 1월 14일
편집: the cyclist 2017년 1월 14일
You need to use array operations (i.e. element-by-element operations) for what you want to do, rather than matrix operations. For example, you need
y = -1.436./x
in place of
y = -1.436/x
  댓글 수: 3
Muhammad Azrul Izmee
Muhammad Azrul Izmee 2022년 1월 27일
Hv tried .* But it keep mention matrix dim must agree!!!
the cyclist
the cyclist 2022년 1월 30일
@Muhammad Azrul Izmee, I suggest you open a new question, with the full description of your problem, instead of commenting on a 5-year-old question and not providing any details.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by