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일

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by