필터 지우기
필터 지우기

Index exceeds matrix dimensions. Error in HW2 (line 82) CL(i) = a(i)*(AOA(i) - alp0);

조회 수: 1 (최근 30일)
I am trying to create a plot with multiple varying functions but i keep getting the error that the index exceeds the matrix dimensions.

채택된 답변

Walter Roberson
Walter Roberson 2018년 1월 20일
Your for 1:1:10 initializes a(1) to a(10). The loop after that is to length(k) which is 33 so it tries to use a(1) to a(33) but a(11) onwards does not exist
  댓글 수: 4
Austen Thomas
Austen Thomas 2018년 1월 20일
im relatively new to matlab so i dont know how to do that

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by