|
|
problem with mesh
i am doing a project where i need to process different images and plot the highest intensity points.
for that i defined x as the number of images (which are 250),y as 640(as the image is 640 by 480)and scan all the 480 pixels for a given y and note it as v(y,x)=the other coordinate of the pixel(one of them is y)
now,while plotting a mesh,when i use the following command,
mesh(v);
i get a mesh.
but in case i use the following command
[x]=meshgrid(1:1:250);
[y]=meshgrid(1:1:600);
z=v(x,y);
mesh(x,y,z);
but as soon as i write the third command,an error is displayed which says given value exceeds matrix dimensions.
Can u please tell me why im getting the error and how i could avoid it?
Thanks a lot
|
|
0
|
|
|
|
Reply
|
varunnalam (7)
|
5/27/2011 11:49:05 AM |
|
Hi Varun,
You should instead use something like this:
[X,Y] = meshgrid(1:250,1:600);
meshgrid(X,Y,v);
Best.
|
|
0
|
|
|
|
Reply
|
sadik.hava (254)
|
5/28/2011 5:53:02 PM
|
|
|
1 Replies
35 Views
(page loaded in 0.072 seconds)
Similiar Articles: Plotting data with nonuniform mesh/grid? - comp.soft-sys.matlab ...Hi, I have a Problem. Im new to Matlab and have to solve a Problem: I have a matrix with Data 354x350. The axes are nonlinear x_axis 354x1 and ... Matlab Code for Automatic Quadrilateral Mesh generation - comp ...Delaunay, DelaunayTri, tsearch and pointLocation problems. - comp ... Matlab Code for Automatic Quadrilateral Mesh generation - comp ... tsearch and DelaunayTri - comp ... Delaunay, DelaunayTri, tsearch and pointLocation problems. - comp ...> The problem is that efficient point location algorithms build a > search > data structure along with the mesh. So you can not just export the > vertices and edges ... 2d unstructured mesh generation - comp.soft-sys.matlabHere is my problem. I want to mesh 1x1 square domain using some unstructured mesh technique. I'm trying to do it using triangular elements. The prob... XPC Target PWM Generation Problem - comp.soft-sys.matlab ...DelaunayTri, tsearch and pointLocation problems. - comp ... xPC Target Hardware problem with ... Matlab Code for Automatic Quadrilateral Mesh generation - comp ... tsearch ... NURBS Capabilities for Matlab - comp.soft-sys.matlab... comp.soft-sys.matlab NURBS Capabilities for Matlab - comp.soft-sys.matlab Problem ... ... for Matlab - comp.soft-sys.matlab Matlab Code for Automatic Quadrilateral Mesh ... GLU_TESS_COMBINE callback issue - comp.graphics.api.opengl ...Hi group, I have a problem with the follpwing piece of code in a C++ program. ... pTess, GLU_TESS_COMBINE, (TESSCALLBACK)cbCallback); if (dt == ElemABC::MESH ... Warp Mesh tool is greyed out - comp.graphics.apps.paint-shop-pro ...I've searched Corel and the web and can't find any reference to this problem. ... Warp Mesh tool is greyed out - comp.graphics.apps.paint-shop-pro ... Hi. I'm making ... uv coordinates??? - comp.graphics.api.openglHi ^_^ I'm working on the creation of normal maps with two mesh at different levels of detail. I've found several programms to calculate normal maps, the problem is ... Write matrix to .txt, fixed space between columns based on decimal ...Hello all, To analyse a fracture mechanics problem I'm using a FEM program that requires an imported mesh (set of nodes and coordinates + their con... Hernia Mesh Problems | eHow.comAccording to the Society of American Gastrointestinal Endoscopic Surgeons, about 600,000 hernia repair operations are performed in the U.S. each year. Surgeries may ... Surgical Mesh Complications | Facts and Solutions for the ...Surgical Mesh Complications. United States health officials with the Food and Drug Administration (FDA) are sending a clear warning to physicians and the general ... 7/9/2012 3:40:32 PM
|
|
|
|
|
|
|
|
|