i have 2 arrays
p = -0.20000 -1.80000
v = 0.9000 0.30000 1.20000 1.50000 -1.80000
I have to compare both the array and finding the whether the element present in p is equal to the element present in v. It has to check each value ( negetive values also included )
if its a success then print the value and the index along it.
how to do it ?
i should get answer as -1.80000 and its index in both arrays
Please help, i am new to matlab
2 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/534728-finding-whether-the-element-of-the-array-is-present-in-the-other-array-and-finding-the-index-value#comment_866858
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/534728-finding-whether-the-element-of-the-array-is-present-in-the-other-array-and-finding-the-index-value#comment_866858
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/534728-finding-whether-the-element-of-the-array-is-present-in-the-other-array-and-finding-the-index-value#comment_868048
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/534728-finding-whether-the-element-of-the-array-is-present-in-the-other-array-and-finding-the-index-value#comment_868048
サインインしてコメントする。