Info

This question is closed. Reopen it to edit or answer.

message "vectors with different lengths"

1 view (last 30 days)
Matheus
Matheus on 29 Nov 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 29 Nov 2014
Edited: Azzi Abdelmalek on 29 Nov 2014
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 Comments
Matheus
Matheus on 29 Nov 2014
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!