Triplot Error

1 次查看(过去 30 天)
Jennifer
Jennifer 2011-10-26
Hi
I wonder if anyone can help. I am trying to create a mesh to be used in a CFD program. However when I run my code I get the following error:
??? Index exceeds matrix dimensions.
Error in ==> triplot at 69
h = plot(x(d), y(d),c,varargin{start:end});
My code is as follows:
load nodes.txt
>> x=[nodes(:,1)];
>> y=[nodes(:,2)];
>> tri = delaunay(x,y);
>> triplot(tri,x,y);
nodes.txt <973x2 double>
x <973x1 double>
y <973x1 double>
tri <1818x3 double>
Any help you would be gratefully received
Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computational Fluid Dynamics (CFD) 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by