Matlab find an element in matrix
1 次查看(过去 30 天)
显示 更早的评论
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
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!