How do I resolve ambiguity in the "refinemesh" arguments?

In the definition of the arguments of refinemesh it says
"An extra input argument it is interpreted as a list of subdomains to refine, if it is a row vector, or a list of triangles to refine, if it is a column vector."
What if I wanted to refine only a single triangle? How can I get refinemesh to not interpret the single value as a list of subdomains?

 Réponse acceptée

Walter Roberson
Walter Roberson le 27 Juin 2013

1 vote

Perhaps pass in NaN as a second element. Or pass in the same triangle number twice.

1 commentaire

Passing NaN as a second element did not work. But passing in the same triangle number twice did.
Thanks for something that works. This will be a slightly annoying kluge to have to implement.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Debugging and Improving Code dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by