Info

此问题已关闭。 请重新打开它进行编辑或回答。

message "vectors with different lengths"

2 次查看(过去 30 天)
Matheus
Matheus 2014-11-29
关闭: MATLAB Answer Bot 2021-8-20
I am splitting my problem in five different sections. Each section has different equations. After solving the sections separately, I am trying to put the solutions together and plot the final solution.

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2014-11-29
编辑:Azzi Abdelmalek 2014-11-29
You are trying to plot
plot(teta,s)
teta and s should be the same size, in your case, type
numel(teta)
numel(s)
you will get different sizes
  2 个评论
Matheus
Matheus 2014-11-29
I got it, but I would like to know how I can declare a vector with zeros and size one hundred

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by