Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.581.557 Times

polyrevolve 1.0

  Date Added: May 01, 2013  |  Visits: 177


Report Broken Link
Printer Friendly Version

Product Homepage
Download (20 downloads)

[X,Y,Z]=polyrevolve(x,z,n)This function revolves a 2D polygon around the Z-axis. It copies the 2D data points evenly around the axis and produces a 3D data set suitable for input to MESHGRID and GRIDDATA to create a 3D surface.Useful to convert 2D axisymmetric data to 3D surfaces for presentation and or analysis.The spacing from one revolved point to the next is defined by the parameter n. The required angular spacing (alpha) for each point is determined using the relationship n=2*r*sin(alpha).%% EXAMPLE:clear all; close all; clc;x=0:0.2:2*pi;z=sin(x+(pi/2));revolve_res=0.2;[X,Y,Z]=polyrevolve(x,z,revolve_res); grid_res=0.05;[XI,YI] = meshgrid(min(min(X)):grid_res:max(max(X)),min(min(Y)):grid_res:max(max(Y)));ZI = griddata(X,Y,Z,XI,YI,'cubic');figure; fig=gcf; clf(fig); units=get(fig,'units'); set(fig,'units','normalized','outerposition',[0 0 1 1]); set(fig,'units',units);plot(x,z,'r-'); hold on; axis equal;xlabel('x (mm)'); ylabel('z (mm)');title('The polygon');xlabel('x (mm)'); ylabel('z (mm)');figure; fig=gcf; clf(fig); units=get(fig,'units'); set(fig,'units','normalized','outerposition',[0 0 1 1]); set(fig,'units',units);plot3(X,Y,Z,'k.'); hold on; axis equal;title('Data "copied" around z-axis using POLYREVOLVE');xlabel('x (mm)'); ylabel('y (mm)'); zlabel('z (mm)');figure; fig=gcf; clf(fig); units=get(fig,'units'); set(fig,'units','normalized','outerposition',[0 0 1 1]); set(fig,'units',units);surf(XI,YI,ZI,'EdgeColor','none'); hold on; axis equal;shading interp; material shiny; lightangle(45,30);title('Surface fit of the revolved data points');xlabel('x (mm)'); ylabel('y (mm)'); zlabel('z (mm)');

Requirements: No special requirements
Platforms: Matlab
Keyword: Clffig Dsinx Bpi Equal Fig Dgcf Figure Mm039 Plotxz Setfig Units Units Units Dgetfig Units Xlabel
Users rating: 0/10

License: Shareware Size: 10 KB
Development Tools  -  Dockfig/Undockfig 1.0
dockfig(FIG) Docks figure with handle FIG, and brings it to the front. dockfig('all') Docks all open figuresundockfig(FIG) Undocks figure with handle FIG, and brings it to the front. undockfig('all') Undocks all open figures
10 KB  
Development Tools  -  Naming figures (fig.m) 1.0
This function works just like the figure command in MATLAB except that you reference figures by names instead of figure handles. (you can still use the handles though)H=fig('My figure')The title of the window of the figure will now be 'My figure'....
10 KB  
Development Tools  -  image3Ddata 1.0
This simple function creates a structure array containing coordinate and colour data for 3D images. The example below shows how the function allows one to use the patch function to plot the whole image or a selection of voxels in 3D. The CData is...
10 KB  
Development Tools  -  platonic_solid 1.0
function [V,F]=platonic_solid(n,r)Creates the PATCH data, the vertices (V) and faces (F) fora given platonic solid (according to "n" see below) with radius (r)n=1 -> Tetrahedronn=2 -> Cuben=3 -> Octahedronn=4 -> Icosahedronn=5 -> Dodecahedron%%...
10 KB  
Development Tools  -  ind2patch 1.0
This function generates patch data (faces d-deDUFd-deDt, vertices d-deDUVd-deDt and color data d-deDUCd-deDt) for 3D images. The patches are only generated for the voxels specified by the linear indices in d-deDUINDd-deDt. The variable...
10 KB  
Games  -  Rubik's Cube Simulator and Solver 1.0
Run: >>digrubThis program allows the user to generate a Rubik's Cube in a number of ways: 1. Randomly scrambled2. With predefined scramble3. By reading state from webcam images4. By manually inputting all fields After having generated a cube, it...
174.08 KB  
Education  -  Lennard-Jones Potential Model For Fac 1.0
The EJS Lennard-Jones Potential model shows the dynamics of a particle of mass m within this potential. You can drag particle to change its position and you can drag the energy-line to change its total energy. The Lennard-Jones...
10.24 KB  
Development Tools  -  Extract data from a matlab figure (.fig) file 1.0
To extract data from a matlab figure (.fig) files generate using version 7 or later. It can be used for both 2D and 3D plots
10 KB  
Development Tools  -  CDFPLOT 1.0
cdfplot(X) displays a plot of the Empirical Cumulative Distribution Function (CDF) of the input array X in the current figure. The empirical CDF y=F(x) is defined as the proportion of X values less than or equal to x. If input X is a matrix, then...
10 KB  
Multimedia  -  gcircle 1.0
GCIRCLE(FIG) draws a circle by clicking the mouse at the center and at some distance away in the figure FIG.H = GCIRCLE(FIG) Returns the handle to the line.GCIRCLE with no input arguments draws in the current figure.
10 KB  
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Multimedia  -  RMCA Realtime MIDI Chord Arranger Pro
RMCA Pro is an auto-accompaniment software which offers all major features of a high quality MIDI keyboard. It comes with chord recognition, based auto arranger, style creator, LeadSheet editor, recording section, up to 16 fingered and 10...
1.54 MB  
Multimedia  -  Spectrum Analyzer pro 2015
This sophisticated piece of software turns your computer into a modern, State-of-The-Art spectrum analyzer giving you features that go far beyond the possibilities of any stand-alone hardware unit -VST Plugin support-Leq (m) movie calculator Leq...
22.61 MB  
Multimedia  -  Multi Level Meter Bridge 2015
PAS Multi Meter Bridge can be configured in a number of different ways, to accurately model the ballistics, responses and graphics of a wide range of standard peak programme meters. These meters currently include the following:IEC 268-10 Type I...
5.22 MB  
Multimedia  -  DTMF Tone Decoder 2015
Why use an audio spectrum analyzer? For those of you that have done video installations, would you install a camera and lens without a monitor to see what you are doing? Why would you do an audio installation without seeing what you are doing? The...
4.09 MB  
Multimedia  -  Frequency Generator 2014
NEW in this version Oscilloscope srcoller and accelerator Efects like Peak and Splitt Oscilloscope kinds like Con. Lines, Dots, Mir Lines, Spikes, Vert. Lines Analyse the real time input in the Oscilloscope Now you can record the generated Tones...
2.01 MB