필터 지우기
필터 지우기

Needing an algebra equation for the following code

조회 수: 1 (최근 30일)
Ali Noori
Ali Noori 2016년 3월 1일
댓글: Walter Roberson 2016년 3월 1일
matrix=[ 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0];
D=diff(find(diff([0 matrix])>0))-1
ans: D= 7 9
  댓글 수: 4
Image Analyst
Image Analyst 2016년 3월 1일
There is none. It's computed numerically. There is no equation where you can plug in matrix and get out D without doing it numerically like you did. Why do you think you need one? What are you going to do with the result? What would you do with the equation, if you had one?
Walter Roberson
Walter Roberson 2016년 3월 1일
What operations are permitted in your algebraic equation?
For example, some people permit Dirac Delta in "algebraic equations" and other people say "No, Dirac Delta is a distribution not a function so it is improper to include it in an equation!"

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by