Have anyone this idea how i can get a cylinder out of cube. radial projection approch

Hi Is there any program that can be used to create 3d object and convert it in to Matlab 3d volume matrix? Cheers ...

Hi All, I am trying to plot a 3D grid onto a 3D image in Matlab. May I ask how to do it please? For example, I have got a 3D image with 201x201x201 voxels. I want to plot a 3D grid with 10 voxels spacing on to the image (there will be 21x21x21 cubes to form this 3D grid). I have got the coordinates of the grid in three matrix X, Y, and Z all sized 21x21x21. Then I want to plot both the image and the 3D grid using a Matlab function slidingviewer(...); at FEX. Here is an illustration of the image I want to get. NB: the grid has no need to be regular. http://i54.tinypic.com/2j5hqgh.png [IMG]http://i54.tinypic.com/2j5hqgh.png[/IMG] Thanks very much, Aaronne You might try this function PLOTGRID I make for my own use: function h = plotgrid(ax, xyz, varargin) % function h = plotgrid(ax, xyz, varargin) % Plot the 4D position array xyz(nx,ny,nz,3) in a grid-like plot if isempty(ax) ax = gca(); end hold(ax, 'on'); h = []; for dim=1:3 p = 1:4; p([1 dim]) = [dim 1]; a = permute(xyz, p); m = size(a,1); a = reshape(a, m, [], 3); if m > 1 hd = plot3(ax, a(:,:,1), a(:,:,2), a(:,:,3), '.-', varargin{:}); else hd = plot3(ax, a(:,:,1), a(:,:,2), a(:,:,3), '.', varargin{:}); end h = [h; hd]; end hold(ax, 'off'); end % plotgrid %%%%% Test script [x,y,z] = meshgrid(-2:.2:2,-2:.25:2,-2:.16:2); v = x.*exp(-x.^2-y.^2-z.^2); clf xslice = [-1.2,.8,2]; yslice = 2; zslice =...

Hello guys, I have a data table/matrix made of 3 columns (no function, only raw values): - the column 1 contains x=n coordinates - the column 2 contains y=n coordinates - the column 3 contains z=n temperatures So I could visualize the temperature (z) of a model as a function of the coordinates (x,y) in the model. My ultimate goal is to create a temperature's cartography with Matlab. Until now, I only managed to obtain a scattering visualization of the data using the following command: >> load data.dat c1 = data(:,1); % Data at intersection 1 c2 = data(:,2); % Data at intersection 2 c3 = data(:,3); % Data at intersection 3 figure scatter3(c1,c2,c3,'filled') xlabel('Intersection 1') ylabel('Intersection 2') zlabel('Intersection 3') Here is the figure I got: http://img18.imageshack.us/img18/5792/matlab.jpg Now I would like to link points with lines to obtain a cartography such as the following one: http://img534.imageshack.us/img534/7359/gnuplot.jpg Could anybody help me to do this? Regards, Gui try and read about 'mesh' "Friedrich " <fmaier@gwdg.de> wrote in message <joif75$cgr$1@newscl01ah.mathworks.com>... > try and read about 'mesh' I got the following error: Z must be a matrix, not a scalar or vector. But lie X and Y, Z contains data, it is not a function tri = delaunay(x,y); trimesh(tri,x,y,z) % Bruno "Bruno Luong" <b.luong@fogale.fi...

Has anyone had any experience using a 3D input device in IDL? One of the hardware engineers ordered in a 3D input device to use in a CAD program. I played around with it for a bit and was amazed at how much control and how intuitive it was to manipulate 3D graphics. With it you can simultaneously Zoom, Pan, and Translate a 3D object . I instantly thought "How do I integrate this with my IDL application?". Is anyone out there already using a 3D input device? If so what's it called. Dan "Daniel Carreira" wrote... > Has anyone had any experience using a 3D input device in IDL? I can't say that I have, but lo have I tried... I don't work with individual objects much, more environments or scenes, so the need to move about "naturally" has led me to investigate input alternatives. Since we can't really justify spending money on professional 3D input devices I have experimented with a range of joysticks, gamepads, keyboard and mouse combinations. The issue in your case would be getting input into IDL. IDL has no support for input devices other than your standard keyboard and mouse out of the box. You most likely will find that there are either drivers that allow you to interface thru "standard" libraries (like MS DirectX) or the manufacturer may provide a custom API. I have written a .dlm which provides support for keyboard, mouse and joystick input via the DirectInput component of DirectX. It has it's li...

Hi all, I want to make a 3d plot to help visualise the modal shape of a beam. Currently i have two vectors (7 elements, all elements between 0 and 1) that give the amplitdue ratio of specific points along the beams length. The two vectors are for each side of the beam (one side is bolted to a wall and obv moves significantly less). I would really like a 3d plot that shows how the amplitude ratio varies with distance from the wall (where the beam is bolted) - to find this i would assume a linear relationship. The graph should ideally show a nice curve for each side of the beam, with the curvature of the curve getting greater up until the maximum at the free end. I am a beginner at matlab and have no idea how to progress on this! i have tried using plot3, but i dont know what to use for my 3rd vector to get the plot i want, im not even sure if i need to use plot3 thanks for the help Chris ...

Hello all, I have a data set, let's call it C, which can be viewed as either an 8x8 matrix or a 64x1 vector.( Basically it is a matrix that looks like: Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 X1 C11 C12 C13 C14 C15 C16 C17 C18 X2 C21 C22 C23 C24 C25 C26 C27 C28 X3 C31 C32 C33 C34 C35 C36 C37 C38 X4 C41 C42 C43 C44 C45 C46 C47 C48 X5 C51 C52 C53 C54 C55 C56 C57 C58 X6 C61 C62 C63 C64 C65 C66 C67 C68 X7 C71 C72 C73 C74 C75 C76 C77 C78 X8 C81 C82 C83 C84 C85 C86 C87 C88 or X1 C11 X2 C12 X3 C13 X4 C14 X5 C15 X6 C16 X7 C17 X8 C18 X1 C21 X2 C22 .... X7 C87 X8 C88 This data can be seen as a function of two independent variables, x and y. Let's say I wanted to fit this data reasonably accurately, ~<10% error. Is there a way to do this in matlab? I have tried to look on the internet for ideas and have seen suggestions for lsqnonlin or lsqcurvefit but these appear to not work how I want them to. I would like something along the lines of polyfit for 3-dimensions where I can specify the order of the polynomial. Thanks, Matt Okay so here is my attempt at using lsqcurvefit, but it's throwing errors and I am too unfamiliar with MatLAB to know why. So my function looks as such: myfun = @(XDATA, a) a(1)+a(2)*XDATA(1)+(a(3)+a(4)*XDATA(1))*(XDATA(2)^-1)+(a(5)+a(6)*XDATA(1))*exp(-XDATA(2)/a(9))+(a(7)+a(8)*XDATA(1))*exp(-(XDATA(2)^2)/a(10)); Where a(1-10) are different coefficients that I am trying to solve for. XDATA looks like a 2x64 ve...

I have a dataset of 3D "grayscale" images (medical ultrasound dataset) in the form of cartesian coordinates of each voxel and according grayscale intesity values. I want to convert this data to the 3D image matrix (so that it can be used in matlab programming). I have seen a similar function but for "plotting" named "pcolor" for "2D" images. I want that the output be a "3D" image "matrix", so this function is not useful. -Do you know whether the matlab image processing toolbox (or file-exchange resources,...) has a function that can perform such conversion? -If the suitable function does not exist in image processing toolbox, how I can program this conversion using matlab? I think that I must do some sort of interpolation, but I don't know exactly how to do it. your help and comments are greatly appreciated I am looking forward to receiving responses. Hi, What do you mean by "3D" image "matrix" ? Do you want a plot in a window or do you want a 3D matrix with the data point placed in it ? For the first one, a simple plot3 should do the trick. For the second depending on the number of data you have the code my be different and there will be an issue if your data points are not in a rectangular grid. Best regards, Cédric "leila " <leila.malekian@gmail.com> wrote in message <j3vqlb$iae$1@newscl01ah.mathworks.com>... > I have a dataset of 3D "gr...

hi everybody i want simulate the rotation of a cylinder around X-axis with different speeds using m-file for example: Times = [t1 t2 t3 ... tn]; Speeds = [s1 s2 s3 ... sn]; but in the body properties we don't have the speed variation function but only angles; like shown below; for i = 1:n cylinder.rotate(AngleX,0,0,1);%cylinder.rotate(AngleX,AngleY,AngleZ,1); end; any idea in how simulate the rotation rates???????? thank's ...

I want to plot a 3D sphere in a figure which should be inside another 3D figure. It should be like that: If I 3D rotate the outer figure, the inner figure should also rotate likewise. But if I rotate in the inner figure it should have no effect on the inner figure. Is it possible? To understand this problem more easily, imagine I want to draw a football inside a cupboard. If I move the cupboard the ball will also move likewise. But if I move the ball, the position of cupboard will not change. Is it possible to do such a thing in matlab? If yes, please help! Ahmed H. CTH - Sweden Hi Ahmed, One possible solution is using Simulink 3D Animation with MATLAB. You build your cupboard modeled as with three 2D planes and have the football modelled as a 3D sphere(with textures!) in VRML. If you use the transform node with "nesting", so that football node is the child of the cupboard node, then any motion of the parent(cupboard) will result in motion of the child(football). I use this concept in the wind farm video demo here: http://www.mathworks.com/matlabcentral/fileexchange/26273-animate-a-wind-farm-with-matlab The analogy is close-your "cupboard" is the hub of my turbine while the blades are the "footballs" in your problem. I want the blades to move when the hub rotates but not vice versa. Observe the nesting of the nodes in the problem. Thanks, Saurabh Hello, Thank you so much! Your work is really excellent. I'm a student and my unive...

Hello everyone! Here's my problem. I'm quite positive that in matlab there is a SIMPLE way to do this, but it's not my field and I do not know where to start exactly. I have (as an input) two sets of points. They represent the inner and outer surface of something shapes approximatively like an ellipsoidal annulus. I need in output a 3d mask that is "true" for points between the inner and the outer surface and "false" for all the other points. something like "poly2mask" but in 3d. The points are already ordered. I think that I should probably start using delaunay triangulation to obtain surfaces from the points I have. And then?? thank you very much, Luca "Luca " <l.presottoRE@MOVE.campus.unimib.NOTit> wrote in message <jrfdkf$nlk$1@newscl01ah.mathworks.com>... > Hello everyone! > > Here's my problem. I'm quite positive that in matlab there is a SIMPLE way to do this, but it's not my field and I do not know where to start exactly. > I have (as an input) two sets of points. They represent the inner and outer surface of something shapes approximatively like an ellipsoidal annulus. > I need in output a 3d mask that is "true" for points between the inner and the outer surface and "false" for all the other points. > something like "poly2mask" but in 3d. The points are already ordered. > I think that I should probably start using d...

Hey all, I've a question concerning 3D interpolation of scattered data. Is there a convenient way in Matlab to interpolate function values defined at 3D scattered points to a new set of 3D scattered points? Till now I interpolate the starting dataset to a regular grid using griddatan. Then I interpolate to the new set of scattered date using interp3. Thats kind of laborious and I'm losing data accuracy. Any suggestion would be appreciated! Thanks, Stefan "Stefan Wenk" wrote in message <jjg1bb$sbh$1@newscl01ah.mathworks.com>... > Hey all, > > I've a question concerning 3D interpolation of scattered data. Is there a convenient way in Matlab to interpolate function values defined at 3D scattered points to a new set of 3D scattered points? > Till now I interpolate the starting dataset to a regular grid using griddatan. Then I interpolate to the new set of scattered date using interp3. Thats kind of laborious and I'm losing data accuracy. Why the need of calling in cascade? GRIDDATA3 (and GRIDDATAN) can handle scattered data as input, there is no restriction whatever on the output for both GRIDDATA3 and INTERNP3. Calling GRIDDATA3 will interpolate directly from scattered data to scattered data. Bruno "Stefan Wenk" <wenk@geophysik.uni-muenchen.de> wrote in message news:jjg1bb$sbh$1@newscl01ah.mathworks.com... > Hey all, > > I've a question concerning 3D interpolation of scattered data. Is ...

Good day everyone, I currently have several 3D meshes/patches I've created by either Generating them with patch/surf commands I am trying to find a way to convert these 3D polygon-based models into a 3D array of voxels so that I can essentially define a 3D coordinate, and know the pixel intensity value at that point. This would allow me to essentially quantize the 3D model into discrete points, and perform histogram analysis on it. Any help would be very much appreciated. Thank you in advance, On 25 Nov, 13:39, "Alan AF" <alaa_saf...@yahoo.com> wrote: > Good day everyone, > > I currently have several 3D meshes/patches I've created by either Generat= ing them with patch/surf commands > > I am trying to find a way to convert these 3D polygon-based models into a= 3D array of voxels so that I can essentially define a 3D coordinate, and k= now the pixel intensity value at that point. This would allow me to essenti= ally quantize the 3D model into discrete points, and perform histogram anal= ysis on it. > > Any help would be very much appreciated. Thank you in advance, Wrong question. If you have generated these plots yourself, you are far better off doing whatever analysis you are up to, on the *data*, rather than on the plots. Rune Thank you for the reply actually I need the data to be as a stack images (i.e 3d matrix) in order to compare it with other matrix to find the PSNR between them so that we can assist the error...

Man Solidoworks has let me down. They say they have 3D sketching, its not 3D its 2D at a time, such as XY or XZ or YZ etc. My CAM package FeatureCAM at work has whats called 3D and I can create lines or spllines or points in X, Y and Z at the same time. I notcie if you start creating in 3D all you get is 2D lines. I'm not sure I can get used to working in 2 planes at a time. Anybody have any hints? Thanks for your time. Any straight line is in 2D. Just select the plane you will draw on. The curves we can easily draw are in one plane. For more complex curves, see 'projected curves' HIH JM "vega" a �crit dans le message de news:part1of1.1.S%23LHP3tHa7fh8A@ue.ph... > Man Solidoworks has let me down. They say they have 3D sketching, its not > 3D > its 2D at a time, such as XY or XZ or YZ etc. My CAM package FeatureCAM at > work > has whats called 3D and I can create lines or spllines or points in X, Y > and Z > at the same time. > I notcie if you start creating in 3D all you get is 2D lines. I'm not sure > I > can get used to working in 2 planes at a time. > Anybody have any hints? Thanks for your time. You have to make sure you're not drawing in any plane or in a straight direction. You can click the end point any where and then define it's X Y & Z coordinates. Deepak Gupta http://gupta9665.wordpress.com/ "Please consider the environment before printing this email" " The good ...

Hello! I am trying to make a 3D plot of some variables: x, y and t (all real numbers). My variables are: +++++++++++++++++++++++++ Variable Size per "whos" command +++++++++++++++++++++++++ x [1 x 2000] y [1 x 2000] t [506 x 2000] I have a problem when trying to use the contour3 command. I do realize that the dimensions are different with the matrices. How can I make a 3D contour plot of the given data? Any help is greatly appreciated. Adam On Sep 26, 8:40=A0am, "adam Smith" <f...@live.com> wrote: > Hello! > > I am trying to make a 3D plot of some variables: x, y and t (all real num= bers). > > My variables are: > +++++++++++++++++++++++++ > Variable =A0 =A0Size per "whos" command > +++++++++++++++++++++++++ > x =A0 =A0 =A0 =A0 =A0 =A0 [1 x 2000] =A0 > y =A0 =A0 =A0 =A0 =A0 =A0 [1 x 2000] =A0 > t =A0 =A0 =A0 =A0 =A0 =A0 [506 x 2000] > > =A0I have a problem when trying to use the contour3 command. I do realize= that the dimensions are different with the matrices. How can I make a 3D c= ontour plot of the given data? =A0 > > Any help is greatly appreciated. > Adam Not enough information............... Do the 2000 data points of x and y form a rectangular grid? If you type: plot(x,y,'bo') what do you see? And when you finally get a 3D contour plot, what do you expect to see? In what way will it be different from a 2D c...

I have some 3D data that I need to import into Matlab. I can not figure out how to import it, does anyone know? I do not think a simple IMread will work, or am I wrong? Finally is there a way to upload a video clip into matlab? I have some data as a movie I would like to upload, but it is not as important as the 3-D pictures being uploaded. Thanks. Mitchell "Mitchell Blenden" wrote in message <is86nh$aoo$1@newscl01ah.mathworks.com>... > I have some 3D data that I need to import into Matlab. I can not figure out how to import it, does anyone know? I do not think a simple IMread will work, or am I wrong? Finally is there a way to upload a video clip into matlab? I have some data as a movie I would like to upload, but it is not as important as the 3-D pictures being uploaded. Thanks. > Mitchell Hi Mitchell, What format is your 3D data in? imread() may very well work if when you say 3D data, you are talking about a truecolor image. I think you need to tell us a bit more. There are multiple ways to read video into MATLAB depending on which toolboxes you have installed. Look at >>doc VideoReader As one example. If you have the Computer Vision Toolbox, you may want to look at the System object: vision.VideoFileReader Wayne ...

Hey all, I've a question concerning 3D interpolation of scattered data. Is there a convenient way in Matlab to interpolate function values defined at 3D scattered points to a new set of 3D scattered points? Till now I interpolate the starting dataset to a regular grid using griddatan. Then I interpolate to the new set of scattered date using interp3. Thats kind of laborious and I'm losing data accuracy. Any suggestion would be appreciated! Thanks, Stefan ...

Hallo evrybody, I have two VRML file (3d colored point cloud) and I want to align these models. i don't if there are an easy way to ensure this alignment with Matlab. Thx for your reply ...

Does any know how to obtain X,Y,Z coordinates from a 3d plot? ginput only returns X,Y coordinates. Best Ravi ...

Hi all, I'm using a 3D Parametric graph to display x,y and z data. I've been setting paramters for the graph display using property nodes. Somehow now when the VI is running it displays fine, when the VI stops the display reverts back to display some old data and not the data that was just being shown. I can't find a property node that might control this (the 'make this default' on the menu is disabled so how did i do it in the first place?!) - basically I want the graph not to change it's display when the VI is stopped. (i.e. so you can carry on looking at it - I relaise you won't be able to move it around etc). The next issue is to fix the scale of the x and y axis relative to each other, i.e to keep the precise aspect ratio of the data. Can this be done easily (basically 1 unit on the x axis is the same length on the plot as 1 unit on the y)? Many Thanks for any help, Chris Please take a look at <a href="http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=144155#M144155" target="_blank">this thread </a>to find an example that works with advanced 3d graph functionality including scale manipulation. Here is a preview. <img src="http://forums.ni.com/attachments/ni/170/144158/2/Set%20Axis%20Range.JPG"> Your "reverting back issue" is not cl...

I have a 3D array in LabVIEW that I need to send to a MATLAB script block. The Help file for MATLAB script blocks in LabVIEW says that the "Real Matrix" input type that I'm using is multi-dimensional, however when I wire the 3D array into this input the wire cannot connect - it says the sink is only 2D. Does anyone know how I can get the input to accept 3D data? Thanks, Ian I encounter the same problems, and I believe at the moment the only solution is the simplest I can think of (and use ... :-)) reshape to 2D before passing to matlab script, reshape in matlab back to 3D, and take care of dimension order .... goodluck Wiebe ...

Hi, I want to show one demo of fourier of signal in 3D figure. So that I ca rotate image and give a better description about time and frequenc relationship. Anyone who can help me or suggest some site for demos . thanks Naveed ...

I have a 3d matrix .. say k=4; p=5; l=6; A =randn(4,5,6); B =(max(A,[],3))'; now i want to get the values of l for which B is storing max values . I m newbie in matlab . "Ashish Gupta" <fidrizersashish@gmail.com> wrote in message <inn705$b1$1@fred.mathworks.com>... > I have a 3d matrix .. > say > k=4; > p=5; > l=6; > A =randn(4,5,6); > B =(max(A,[],3))'; Call max() with two outputs [B loc] = max(A,[],3); then transpose if needed. Bruno "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <innogo$f8i$1@fred.mathworks.com>... > "Ashish Gupta" <fidrizersashish@gmail.com> wrote in message <inn705$b1$1@fred.mathworks.com>... > > I have a 3d matrix .. > > say > > k=4; > > p=5; > > l=6; > > A =randn(4,5,6); > > B =(max(A,[],3))'; > > Call max() with two outputs > > [B loc] = max(A,[],3); > > then transpose if needed. > > Bruno Thanks.. It worked . ...

Hi, I made a matlab code which produces a 3d geometry output and I'd like to import this geometry in Autocad in order to modify it. Is it possible? thanks, -Yiannos Anybody? ...

Hiya, For my phd thesis, I wrote a custom unstructured finite element (tri / tet) 2D/3D reaction-diffusion solver in matlab. It uses an adams- bashforth / trapezoidal predictor-corrector time integrator with a customised GMRES linear solver (which itself uses matlab's '\' operator), with adaptive time-stepping based on the Gresho and Sani depiction in their CFD books. Hence, this thing handles multiple space and time scales - which I needed for the computational cell biology modeling I performed. Note, there's no Newton solver in it...yet? Anyway, I'm curious if anyone in the matlab community would find this tool useful? I'm considering releasing this into the wild (via sourceforge or mathwokds I'm not sure yet), but that entails writing documentation and probably making it comprehensible to other human beings (oh boy! :). Any feedback from you folks I would greatly appreciate... thanks! shawn "Shawn" wrote in message <bebd6580-2df2-4b61-92af-b857a00ed5db@s9g2000pba.googlegroups.com>... eling I performed. Note, there's no Newton solver in > it...yet? > > Anyway, I'm curious if anyone in the matlab community would find this > tool useful? IMO any good quality is useful. Bruno On Mar 22, 8:24=A0pm, "Bruno Luong" <b.lu...@fogale.findmycountry> wrote: > "Shawn" wrote in message <bebd6580-2df2-4b61-92af-b857a00ed...@s9g2000pba= ..googlegroups.com&g...

Phonograph cylinders are the earliest commercial medium for recording and reproducing sound . Commonly known simply as "records" in their era ...

Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Several graduated cylinders of various thickness and heights with white side markings in front of a large beaker. They are all filled about halfway ...

This video present the result of the integration of multiple data sources of different 3D acquisition techniques. These acquisitions have been ...

Cylinder Head Innovations is set to pay damages to Siemens PLM software after the Melbourne based design and manufacturing firm settled a case ...

New range of four-cylinder engines promises big fuel economy gains.

A new four-cylinder engine range transforms Volvo's mid-sized sedan.

Falcon's numbers game: Four or six?

Rhiannon Giddens and her staggering band mooched like Minnie one minute then unleashed bluegrass wildfire.

Man in hospital with burns to his arms, chest and back .

Resources last updated: 3/31/2016 12:17:03 AM