Create a mesh from a matrix

Hi everyone, I think this question will be really easy for a lot of people here, but this is the first time I need to mesh something and I am lost.
I have a matrix n*n with value 1 and 0 only. I would like to find a mesh for this matrix. I don't want to plot anything ! All the 'mesh tools' I found are just plotting curves in different way. I want vectors/matrix as output, with the coordinates of every nodes.
Could you help me and tell me which function I can use for that ?
Thank a lot.

 採用された回答

Matt J
Matt J 2012 年 10 月 19 日
編集済み: Matt J 2012 年 10 月 19 日

0 投票

A "node" is simply a matrix location containing a 1? If so, use the FIND command (with 2 output args).

2 件のコメント

Olivier
Olivier 2012 年 10 月 22 日
編集済み: Olivier 2012 年 10 月 22 日
The matrix contains only 0 and 1. If you look at the matrix from the top (with pcolor for example) you can see some geometric shapes, like circles, triangles ect...
I would like to have a 2D mesh which is able to make the difference between 0 and 1. I would like to use this mesh for Finite element analysis.
Matt J
Matt J 2012 年 10 月 22 日
If you're trying to find the coordinates of the 1s, as stated in your question, use the FIND command.

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

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2012 年 10 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by