필터 지우기
필터 지우기

How to implement the algorithm in matlab

조회 수: 1 (최근 30일)
jy tan
jy tan 2011년 12월 30일
1.Let's say i need an array to store the previous breakdown nodes: Storebreakdown=[0 0 0 0 0 ...](hundreds of zeros)
then if breakdown, how to add inside the Storebreakdown array?
2. After qn 1 is completed, how to implement this:
if node is not in Storebreakdown array { perform action }
  댓글 수: 5
jy tan
jy tan 2012년 1월 6일
is there a function to add a number as a member inside the array?
Walter Roberson
Walter Roberson 2012년 1월 6일
ismember() is for checking to see if a number is already in an array. ismember(29, a)
The function for assigning a member inside an array is subsasgn() which is not often called directly. Instead, people usually invoke matrix assignment syntax, such as a(5) = 29;

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by