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
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 11 月 29 日
v=zeros(1,100)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by