Plotting, keep getting error that matrix dimensions must agree

3 次查看(过去 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 个评论
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