Fitxer:Siemens star (128 spokes) & Matlab code.svg

El contingut de la pàgina no s'admet en altres llengües.
De la Viquipèdia, l'enciclopèdia lliure

Fitxer original(fitxer SVG, nominalment 272 × 272 píxels, mida del fitxer: 9 Ko)

Descripció a Commons

Resum

Descripció
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
Data
Font Treball propi
Autor Hans Strasburger
SVG genesis
InfoField
 
El codi font d'aquest SVG és vàlid.
 
Aquesta imatge vectorial ha estat creada amb MATLAB per Strasburger
Codi font
InfoField

MATLAB code

function 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

Llicència

Jo, el titular dels drets d'autor d'aquest treball, el public sota la següent llicència:
w:ca:Creative Commons
reconeixement compartir igual
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Sou lliure de:
  • compartir – copiar, distribuir i comunicar públicament l'obra
  • adaptar – fer-ne obres derivades
Amb les condicions següents:
  • reconeixement – Heu de donar la informació adequada sobre l'autor, proporcionar un enllaç a la llicència i indicar si s'han realitzat canvis. Podeu fer-ho amb qualsevol mitjà raonable, però de cap manera no suggereixi que l'autor us dóna suport o aprova l'ús que en feu.
  • compartir igual – Si modifiqueu, transformeu, o generareu amb el material, haureu de distribuir les vostres contribucions sota una llicència similar o una de compatible com l'original

Llegendes

Afegeix una explicació d'una línia del que representa aquest fitxer

Elements representats en aquest fitxer

representa l'entitat

Historial del fitxer

Cliqueu una data/hora per veure el fitxer tal com era aleshores.

Data/horaMiniaturaDimensionsUsuari/aComentari
actual11:49, 25 juny 2018Miniatura per a la versió del 11:49, 25 juny 2018272 × 272 (9 Ko)StrasburgerUser created page with UploadWizard

La pàgina següent utilitza aquest fitxer:

Ús global del fitxer

Utilització d'aquest fitxer en altres wikis:

Metadades