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

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

Serving Software Downloads in 956 Categories, Downloaded 50.165.776 Times

polyrevolve 1.0

  Date Added: May 01, 2013  |  Visits: 261

polyrevolve

Report Broken Link
Printer Friendly Version


Product Homepage
Download (48 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
USER REVIEWS
More Reviews or Write Review


POLYREVOLVE RELATED
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  
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  -  fig- the exact figure size and no white space 1.0
This function is especially useful for creating high-quality figures for publication. Many scientific journals require figures with specific sizes and fonts.One annoyance of the Matlab's default figure is the complications in defining the figure's...
10 KB  
Development Tools  -  fig.m / closefig.m 1.0
Use:>> fig('figure name');>> plot(x,y);>>>> other stuff>>>> closefig('figure name');Really just a convenience, but it helps in that closefig.m only closes figures that were tagged by fig.m. This way, I can insert the fig/closefig pair in code that...
10 KB  
Multimedia  -  figure inset 1.0
The function plotting figure inside figure (main and inset) from 2 existing figures.
10 KB  
NEW DOWNLOADS IN SCRIPTS, MULTIMEDIA
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  -  isimSoftware CountDown Timer 1.0.2
isimSoftware CountDown Timer isimSoftware countdown timer for Windows, written for show operators by a show operator. Simple intuitive user interface with plenty of options hidden underneath. Displays time remaining, current time and a message...
421 KB  
Multimedia  -  Audio Reader XL 2020 20.0.1
Text to Speech Software Audio Reader XL reads aloud text easily. It’s text to speech software for reading eBooks, texts, web pages, and creating MP3s. The voice aloud reader read-aloud any kind of texts like - Any kind of texts - TXT text -...
73.26 MB  
Multimedia  -  Multi Level Meter Bridge 2020
With the new function Peak Detector you can control very accurate the Input of different Levels in a control rooms. Correlation Meter, In a logfile you are able to comprehend when and what kind of Level is under a threshold. PAS Multi Meter Bridge...
5.29 MB  
Multimedia  -  Spectrum Analyzer pro Live 2020
Spectrum Analyzer Pro Live turn your PC into a cutting-edge sound analysis tool! Dante WDM If you are a professional musician, acoustics expert or just a hi-fi enthusiast who wants to make sure that his audio system is perfectly tuned and plays...
12.86 MB  
Multimedia  -  Graphic Equalizer Studio 2020
you can run any windows sound application or DVD Player software above the Equalizer. The Equalizer will correct the audio stream automatic and will include the Limiter and the compressor to be sure, that the audio signal is not to loud or not to...
25.72 MB