フィルターのクリア

What is the meaning of p(1, :) in the following lines?

18 ビュー (過去 30 日間)
mathru
mathru 2020 年 8 月 27 日
コメント済み: Stephen23 2020 年 8 月 27 日
p = thermalModelT.Mesh.Nodes;
nodesLeftEnd = find(p(1,:) < -1.5+eps);
nodeCenter = nodesLeftEnd(p(2,nodesLeftEnd) < eps);
nodeOuter = nodesLeftEnd(p(2,nodesLeftEnd) > 0.2-eps);
In the above lines, what does it mean by p(1,:) and p(2,nodesLeftEnd)?
  1 件のコメント
Stephen23
Stephen23 2020 年 8 月 27 日
"what does it mean by p(1,:) and p(2,nodesLeftEnd)?"
Very basic MATLAB concepts, such as indexing into arrays, is explained in the introductory tutorials:

サインインしてコメントする。

採用された回答

Alan Stevens
Alan Stevens 2020 年 8 月 27 日
It refers to the first row and all columns of matrix p.
So find(p(1,:) < -1.5+eps); means look through all the columns of the first row of p and find which ones satisfy the condition that they are less than -1.5+eps.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by