필터 지우기
필터 지우기

Matlab find an element in matrix

조회 수: 1 (최근 30일)
Nadia Bica
Nadia Bica 2015년 7월 8일
편집: bio lim 2015년 7월 8일
hello, I have a matrix that has many elements and I would like to know if I have a specific element on it All my variables are symbolic at this point. I already used : [i,j] = find( x==q^2) the output: i =
[]
j =
[]
so whats this means? I Have it somewhere or not?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 8일
편집: Azzi Abdelmalek 2015년 7월 8일
syms q
x=[2*q q^2 5*q]
[i,j] = find(x==q^2)
The result is
i =
1
j =
2

추가 답변 (1개)

bio lim
bio lim 2015년 7월 8일
편집: bio lim 2015년 7월 8일
It means your matrix 'x' does not have an element that is equal to q^2.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by