How to define a array for one variable having 3 columns of data

I have 3 variables in a equation. These 3 variables has 3*3 data. NO,N & J variables are there. I define the array for No the length it is taking 3
aX= length(No);
Results=cell(1,aX);
it is showing that array exceeds the bounds

댓글 수: 3

Unless you have a variable called cell, that error is not possible from the code you show.
As a side note: you should use numel instead of length, or use the size function.
sunitha
sunitha 2021년 2월 19일
편집: sunitha 2021년 2월 19일
i made changes in the program but still i am getting the same error . I want to calculate value V finally .can u help me ??
Your code is not alligned, uses clear all at the start and contains no comments whatsoever. How is anyone supposed to understand what you mean? Your variable names are not very descriptive either.
The cause of this particular error is that you try to index Se(i,j) with Se being a 1x2 double and j=1;i=2;.
There are also several mlint warnings. You would do well to resolve them.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2021년 2월 19일

댓글:

Rik
2021년 2월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by