File:Siemens star (128 spokes) & Matlab code.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 272 × 272 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,024 × 1,024 pixels | 2,048 × 2,048 pixels.
Original file (SVG file, nominally 272 × 272 pixels, file size: 9 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionSiemens star (128 spokes) & Matlab code.svg |
English: A Siemens star with 128 spokes, together with its Matlab code. Create your own star with that code.
Deutsch: Ein Siemensstern mit 128 Speichen, mit generierendem Matlab-Code
Français : Une Mire de Siemens avec Matlab logiciel |
Date | |
Source | Own work |
Author | Hans Strasburger |
SVG development InfoField | |
Source code InfoField | MATLAB codefunction Siemens_star()
% Matlab source code for creating your own star
% Siemens Star
% Hans Strasburger, June 2018
number_of_spikes = 128; % fill in as you wish
radius = 40; % Siemens star radius
axis equal % 1:1 aspect ratio
axis off % but no frame
hold on % fill graph one by one
% Define points along the circumference
theta=-pi:2*pi/number_of_spikes:pi; % theta is a vector of angles
x = radius * cos(theta); % a vector of points along the outer circumference
y = radius * sin(theta); % "
% Draw triangular spikes; leave every 2nd spike white
for k = 1 : (number_of_spikes/2) % k goes from 1 to the number of endpoints along the circle
% A spike has 4 vertices, the first and last one in the center, so the vectors X, Y, have length 4
X = [0 x(2*k-1) x(2*k) 0]
Y = [0 y(2*k-1) y(2*k) 0]
C = 'black'
p = patch(X, Y, C, 'EdgeColor','none') % draws the spike (with no edge), using the 'patch' function
end % end of for loop
% Save the resulting Siemens star in vector graphics format to work properly (svg, eps, etc.)
% To do so, export figure from the pop-up menu appropriately
% End of script
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:49, 25 June 2018 | 272 × 272 (9 KB) | Strasburger (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikipedia.org
- Usage on de.wikipedia.org
- Usage on en.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 272.126px |
---|---|
Height | 272.126px |