Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

message "vectors with different lengths"

2 visualizaciones (últimos 30 días)
Matheus
Matheus el 29 de Nov. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 29 de Nov. de 2014
Editada: Azzi Abdelmalek el 29 de Nov. de 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 comentarios
Matheus
Matheus el 29 de Nov. de 2014
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 el 29 de Nov. de 2014
v=zeros(1,100)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by