Hi All, I am using a 'quad' function to perform an definite integral on a step function generated by 'stepbeta' (below). It worked fine. But, once I try to integrate the function, 'obs1' that has 'quad' function inside, I get the error below. Would anybody let me know how to solve this problem? Alternatively, would anybody let me know how to generate an arbitrary staircase function with symbolic math? Thank you. --------------------------------------------------------------------------------------------------- function tp global p d t ; p = 1e-3*[.04 .00...

Hello, after searching the newsgroups and the Help for Hours, I am looking for your help. The problem I am working with is to integrate a function which has been integrated before. I think the best way is to show you an example: ------------------------------------------------------- Radius =3D 4.1; Length =3D 15; Lengthofinterest =3D 15; Ione=3D1; Fone=3D @(z2) (quad(@(z) (z.^4./((Radius.^2+(z-z2).^2)).^(3/2)), -Lengthofinterest/2, Lengthofinterest/2)); %defining F1(z2)=3Dint(F dz) faone=3D@(z2) (Fone(z2)-Ione/Lengthofinterest).^2; fplot(faone,[-15 15]); %here you can see t...

I'd like to draw a triangle and mark a point P in it with barycentric coordinates (3/4,1/6,1/12). How to do this with Maple? Best regards, Rainer Rosenthal r.rosenthal@web.de Perhaps this will do for you. > restart: > with(plots): > P[1],P[2],P[3]:=[3,5],[-1,4],[7,-3]: > B:=[3/4,1/6,1/12]: > C:=add(B[i]*P[i],i=1..3): > > T:=plot([P[1],P[2],P[3],P[1]], style=line, color=red, scaling = constrained,axes=normal): > Pt:=plot([C], style=point,symbol=circle,color=blue): > Text:=textplot([op(C+[-.2,.2]),convert(B,string)],align={ABOVE,RIGHT}): > &...

Hello all, I have points P1, P2 lying in a triangle A, B, C. I'm able to compute barycentric coordinates of P1 and P2. Is it possible to interpolate somehow the barycentric coordinates to obtain points which lie on the line segment P1P2? Of course, I could interpolate linearly between P1 and P2, but I would like to interpolate bar. coordinates instead. Is that possible? Thanks. Jindra On Apr 12, 3:39 pm, jindra <jpa...@gmail.com> wrote: > Hello all, > I have points P1, P2 lying in a triangle A, B, C. I'm able to compute > barycentric coordinates of P1 and P2. Is it possible to interpolate > somehow the barycentric coordinates to obtain points which lie on the > line segment P1P2? Of course, I could interpolate linearly between P1 > and P2, but I would like to interpolate bar. coordinates instead. Is > that possible? > It's exactly the same thing. The barycentric coordinates computed from any triangle or generic cartesian coordinates are related to one another by an affine transformation. On Apr 12, 6:36 pm, Lorenzo Gatti <ga...@dsdata.it> wrote: > On Apr 12, 3:39 pm, jindra <jpa...@gmail.com> wrote: > > > Hello all, > > I have points P1, P2 lying in a triangle A, B, C. I'm able to compute > > barycentric coordinates of P1 and P2. Is it possible to interpolate > > somehow the barycentric coordinates to obtain points which lie on the > > line segment P1P2? Of course, I could inter...

How do I transform my values into my coordinate system All values is in pixels In my coordinate system origo is located in (40,495) The display area that I can use is from X=40 to x=750 and from y=495 to y=55 When you go down in the coordinate system the y value is increasing and when you go to the right the x value is increasing. The y-axis is showing time from 12:00 to 20:00 hours and the x-axis is showing from 0 to 800 So I can have values like [13:10, 190] [13:40, 240] [14:25, 390] [15:10, 431] [16:10, 554] [17:10, 643] [18:10, 740] I just wonder if someone has a ...

Hi there, Assume one point is within a cuboid, The point should be represented by a linear combination of all vertices of the coboid. Could someone tell me how to calculate the weight for those vertices? or any reference paper? I only know the same case within a convex polygon and a tetrahedron.. subdivide the cuboid into several tetrahedra? Thanks very much : ) Best Regards, Brian Brian <cuckoo@cs.nchu.edu.tw> wrote: > Assume one point is within a cuboid, > The point should be represented by a linear combination of all vertices > of the coboid. Such a linear combination would be infinitely ambiguous, which means the term "barycentric coordinates" from your subject line wouldn't really apply here. Coordinates are supposed to be a one-to-one mapping. > subdivide the cuboid into several tetrahedra? Yes. At least four of them, to be precise. Even then, there's some ambiguity, because different subdivisions of the cuboid would yield different coordinates. A subdivision exploiting symmetries of the cuboid should be less ambiguous. E.g. you could divide the cuboid into 6 rectangular pyramids (one per face, with the centroid of the volume as their apex), and each of those into 4 triangular pyramids by adding the face center. -- Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de) Even if all the snow were burnt, ashes would remain. On 21 Jan 2005 10:11:45 GMT, Hans-Bernhard Broeker <...

I think all the algorithms are crap, not useful at all.Old programs on the IBM PC were much faster on a 4.77 Mhz machine than the crap of today. I think we should use ASCII graphics again. And Carl Dau said... > I think all the algorithms are crap, not useful at all.Old programs on the > IBM PC were much faster on a 4.77 Mhz machine than the crap of today. > > I think we should use ASCII graphics again. http://www.jfedor.org/aaquake2/ http://www.catb.org/~esr/jargon/html/T/troll.html > I think all the algorithms are crap, not useful at all. That's why research is do...

Peter Shirley's book ("Fundamentals of Computer Graphics") discusses color interpolation via barycentric coordinates. It also says: "we can use the barycentric coordinates to interpolate the depth values of the vertices to each pixel." Is this correct though? I thought some special perspective correct interpolation had to be done. > Peter Shirley's book ("Fundamentals of Computer Graphics") discusses color > interpolation via barycentric coordinates. It also says: "we can use the > barycentric coordinates to interpolate the depth values of the vertices to > each pixel." Is this correct though? I thought some special perspective > correct interpolation had to be done. Yes, it is correct. This has been discussed before, and just recently. In short, the 'depth' values that are used with z-buffer have a special computation formula which has this nice property. Of course, this formula is deliberately chosen such. Quoting myself: "The projected points all lie on a plane, so the notion of depth is added afterwards. What should we qualify as a "depth" value? Distance of the 3d-point to the center of projection? Orthogonal distance of the 3d- point to the projection plane? These are the easy ones that come to mind first. There are an infinity of others. However, all discussion is without a meaning without a purpose to actually use the depth value somewhere. The purpo...

Hi Would you introduce me a good c++ book about computer graphic with actual example, i am currently developing a GUI engine (like QT) for my operating system. A website would be appreciates thanks from Peter (cmk128@hotmail.com) cmk128@hotmail.com =E5=AF=AB=E9=81=93=EF=BC=9A > Hi > Would you introduce me a good c++ book about computer graphic with > actual example, i am currently developing a GUI engine (like QT) for my > operating system. > A website would be appreciates > thanks > from Peter (cmk128@hotmail.com) Hi I want a book that talk about image processing, like this: http://www.jhlabs.com/ip/filters/ thanks AGG http://www.antigrain.com/ ...

Hello, I am working on 3d graphics using plot3 function. here while running i have to find the 3 coordinates (x-axis, y-axis,z-axis) in this graph where ever i click my mouse icon, for this iam not able to find any suitable function.Like the function ginput( )for 2d graphics i need one for 3d graphics.Please hlep me to find a solution for this problem. Regards Pramod ...

Hi=20 I hope I can explain this clearly without getting into too much detail as t= he code in question is a couple of thousand of lines. So to begin, I have = a JPanel to which I add JLabels and JComponents using JPanel's add() method= .. It works fine, but now I would like to print an image ON TOP of the adde= d JLabels and JComponents. For this I manipulate my JPanel's paintComponen= t(Graphics graphics) method. In it I have something of the following sort: paintComponent(Graphics graphics){ Graphics2D g =3D (Graphics2D)graphics.create(); g.drawImage(image, 200, ...

Dear list members, I play around with object graphics and try to build a routine which is able to visualize 3d objects of different sizes in th same way. When I define the viewplane_rect and the zclip of my view, everything works fine before I rotate the view. Then the coordinate system is not the coordinate system of the defined axes anymore. Is there an easy way to calculate the coordinates for viewplane_rect and zclip from the coordinates of the rotated axes ? Thanks for your help in advance ! Klemens > I play around with object graphics and try to build a routine which is &g...

Hello. I've got a tricky problem. I am not experienced with Postscript, but I've read some tutorials and think it's fairly straightforwarded. On my job, we recieve catalogs in postscript format, convert all pages into jpg, and then we create image-maps for them and create online catalogs with them. Since we do quite a lot of catalogs, and some have several hundreds of pages, we want to extract the coordinates from raster graphics in the postscript file automatically. Is there an easy way to do this? What kind of raster graphics are there in postscript? image, colorimage etc.? ...

I am trying to create an animation of a piecewise function. I have a graph of a ball rolling and I would like to combine an animation for one equation of motion for the first part with another equation for the second part of the motion. It is easy enough to create the two animations individually, however I am stumped on how to combine them into one continuous animation. Link to the forum page for this post: http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=10007#p10007 Posted through http://www.mathematica-users.org [[postId=10007]] ...

Hi everyone Does anybody know how to insert a graphic inside a graphic?? I mean, to add a small graphic (as a zoom for example) inside a plot. Thanks augusto try axes try axes check out the tool 'imshow()', then try to bring the figure in shape get(gca) and superimpose your graph - 'hold on', 'plot()', 'hold off' (Haven't tried it my self so far) Thorben The example below shows you how to insert a graphic (e.g. photo) into another MATLAB figure. I = imread('peppers.png'); theta = linspace(-pi,pi,200); figure; plot(theta,cos(theta)); gr...

I came across a limitation in the mechanism for copying coordinates of points in 2D graphics (the Get Coordinates button in the Drawing Tools palette) in V6.03. Consider the following plot of a sine wave Plot[Sin[2 x], {x, 20270, 20275}] When I try to select and paste the coordinates of the two crests of the wave, I typically get two points with the same x-coordinate {{2.027*^4, 0.99}, {2.027*^4, 0.99}} whereas I would expect the two x-coordinates to be around 20270.3 and 20273.5, values which are well separated on the plot. This seems to happen because the Get Coordinate...

Hi, I'm using the 'algorithm' and 'algorithmic' packages. Some of the numbered lines have a variable-width sized font while other lines have a teletype font. Could someone pls inform me about how to change all the lines to the variable-width sized fonts. thx., glen Am 24.06.2010 14:13, schrieb John Smith: > Hi, > I'm using the 'algorithm' and 'algorithmic' packages. > Some of the numbered lines have a variable-width sized > font while other lines have a teletype font. Could > someone pls inform me about how to change all ...

Hi, just curious if there's a neat way to get the barycentric coordinates (or similar) of the current fragment in a GLSL shader? Only way I could think of it was to render each triangle individually, but that's not too good for performance... - Asbj�rn Lord Crc wrote: > just curious if there's a neat way to get the barycentric coordinates > (or similar) of the current fragment in a GLSL shader? NO, but you can get the same result if you can afford to choose the primitive type to be GL_TRIANGLES and setup the barycentric to each vertex as: A = vec3(1.0, 0.0, 0.0); B = v...

Dear all, I've selected a series of coordinates (x,y) by clicking around an ROI using= the CURSOR and WHILE (!MOUSE.button NE 4)... (as per example in CURSOR doc= umentation). Is there a way to use these coordinates again (e.g. in the nex= t section of a 3D stack) in a way that allows me to modify (e.g. by click a= nd drag) the existing coordinates to better fit the object/ROI (which chang= es ever so slightly in z)? I would like to avoid having to select the ROI again (from scratch) as this= is time-consuming - this is supposed to be an initial look at the data...= =20 Many thanks for your help in advance. Kind regards, Cherrie Cherrie Kong writes: > I've selected a series of coordinates (x,y) by clicking around an ROI using the CURSOR and WHILE (!MOUSE.button NE 4)... (as per example in CURSOR documentation). Is there a way to use these coordinates again (e.g. in the next section of a 3D stack) in a way that allows me to modify (e.g. by click and drag) the existing coordinates to better fit the object/ROI (which changes ever so slightly in z)? You are not going to be able to edit ROI coordinates if you want to continue to use the CURSOR command like this. But, if you wanted to use a draw widget (the normal way to do these kinds of user interactions with the cursor), the world opens up to you. If fact, these kinds of editable ROI widgets have already been built for you in the SelectInteraction object in the Catalyst Libra...

Hiya all. everybody should applicate this type of guidelines This movement builds a strong visual link between the head and shoulders. If you get the correct relationship between the eyes, nose and mouth, you will end up with a good likeness. Our Pencil Portrait lesson explains and illustrates the step by step drawing techniques involved in creating the portrait of a young girl. At this stage, the drawing is no more than a set of carefully measured features that establish the final proportions of the portrait. There are three basic stages in the creation of the image...

Google has failed me again. I don't even know what questions to ask. Pick up any cad program. Clicking on a line segment selects that segment. That's what I want to do. I have a Visual Basic 6/Win98SE program that takes gerber input and translates it to run a pen plotter. It also plots the "toolpath" on the screen. I'd like to be able to select a line segment and see the endpoint coordinates. The only thing I can think to do is try to construct a tiny window, redraw the graphic and somehow use the Windows API clipping functionality to tell me when a line passes th...

I realize this is not truly a LabVIEW question, but I'm hoping for suggestions. I have a digitized image of a sample on a 3 axis stage. The user selects "paths" for a drill to take along the surface of the sample. On the image, 3 reference points are identified. The stage posititions (x, y, and z) corresponding to these points are then identified. I need to now convert the coordinates of the paths to the stage coordinate system. Are there any LabVIEW vi's that are suited to this need? I have IMAQ vi's but not very experience with these yet. Suggestions much apprecia...

Hi, In the framework of the algorithmic and algorithm packages, is it possible to "tune" the space between two consecutive lines of the produced algorithm ? Something like itemskip ? Thanks in advance, Vincent Kelner ...

Hello, Who said that lockfree algorithms and waitfree algorithms and scalable algorithms are hard ? as you have noticed i have tried to easy the job for you by inventing scalable algorithms and as you have noticed i have invented today a new algorithm of a very fast concurrent FIFO queue.. Here it is: http://pages.videotron.com/aminer/CQueue1.htm And i am right now thinking about my next invention , so stay tunned ! and enjoy all my programming inventions that you will find at: http://pages.videotron.com/aminer/ Thank you, Amine Moulay Ramdane. ...

) is the point between two objects where they balance each other. For example, it is the center of mass where two or more celestial bodies orbit ...

This video, part of a new series of ESA teaching resources called 'Teach with space', shows an experiment performed by ESA astronaut Samantha ...

A comet is an icy small Solar System body (SSSB) that, when close enough to the Sun , displays a visible coma (a thin, fuzzy, temporary atmosphere ...

Dynamical time is required to describe the motion of bodies in a particularreference frame and according to a particular gravitational theory. ...

two dimensional curves index A-E

Award-winning reference tool providing easy access to authoritative and up-to-date information across all major areas of science and technology. ...

Maybe you heard that ATI GPUs starting from 2*** have hardware tessellation unit. Maybe you have seen it working in GPU Mesh Mapper and Render ...

a measured or measurable period, a continuum that lacks spatial dimensions. Time is of philosophical interest and is also the subject of mathematical ...

Online Astronomy Text Table of Contents Recent Updates / Recent Pictures / Recent Questions and Replies © Courtney Seligman, 1993-2010 (This ...

See what's going on with flipcode! This section of the archives stores flipcode's collection of featuredarticles and columns. Reflections and ...

Resources last updated: 3/8/2016 2:36:09 AM