Monthly Archives: October 2016

Analysis

Funktion
Bild
Urbild
Unstetigkeitsstelle
Regelfunktion

Taylor-Formel
Matheboard.de: Restglied Taylornpolynom
Kreisgleichung

Raum / Vektorraum

mathepedia.de: Metrische Räume
Metrischer Raum
Vektorraum

Kontraktion

Kontraktion (Mathematik)
Banachscher Fixpunktsatz
Der Existenz- und Eindeutigkeitssatz von Picard-Lindelöf

Prof. Dr. habil. Lubov Vassilevskaya

Math Grain
Prof. Dr. Lubov Vassilevskaya
Prof. Dr. Lubov Vassilevskaya

Ableiten einer Betragsfunktion
Quadratische Gleichungen mit absoluten Beträgen

MATLAB Cheatsheet

Matlab-Schnelleinf ̈uhrung, PDF, 3 Seiten

Formatting

Number

format, Set Command Window output display format

>> a = 1/3;
>> b = 0.001;

>> format short
a = 0.3333
b = 1.0000e-03

>> format shortE
a = 3.3333e-01
b = 1.0000e-03

>> format shortG
a = 0.33333
b = 0.001

>> format shortEng
a = 333.3333e-003
b = 1.0000e-003

>> format long
a = 0.333333333333333
b = 1.000000000000000e-03

>> format longE
a = 3.333333333333333e-01
b = 1.000000000000000e-03

>> format longG
a = 0.333333333333333
b = 0.001

Strings

Functions That Format Data into Text

  • compose — Write arrays of formatted data to an output string array
  • sprintf — Write formatted data to an output character vector or string scalar
  • fprintf — Write formatted data to an output file or the Command Window
  • warning — Display formatted data in a warning message
  • error — Display formatted data in an error message and abort
  • assert — Generate an error when a condition is violated
  • MException — Capture error informatio
str = sprintf('Hello, %d worlds!', 20)
disp(sprintf('Hello, %d worlds!', 20))

% write to Command Window
fprintf('%5d %5d %5d %5d\n', A(1:4))

% write to file
fileID = fopen('myfile.txt','w');
nbytes = fprintf(fileID,'%5d %5d %5d %5d\n', A(1:4))

Matrix

Erzeugung von Matrizen

eye, Identity matrix
ones, Create array of all ones
zeros, Create array of all zeros


>> C = [ 1 2 4 4 5; 6 7 8 9 10];
C =
     1     2     3     4     5
     6     7     8     9    10

>> size(C)
     2     5

>> length(C)
     5

=================================

>> E = [ 1 2 3 4 5; 2 3 4 5 6; 3 4 5 6 7; 4 5 6 7 8; 5 6 7 8 9]
E =
     1     2     3     4     5
     2     3     4     5     6
     3     4     5     6     7
     4     5     6     7     8
     5     6     7     8     9

>> E(3,2)
     4

>> E(3,(2:5))
     4     5     6     7

>> E((3:4),(2:5))
     4     5     6     7
     5     6     7     8

Plotting

plot(x-values, y-values);
loglog(x-values, y-values);
semilogx(x-values, y-values);

xlabel('\omega in Hz');
ylabel('H_d_B');

axis([x-min x-max y-min y-max]);

grid on;
grid off;

hold on;
hold off;

Default Argument

Default Arguments in Matlab

function f(arg1,arg2,arg3)

  if nargin < 3
    arg3 =   'some default'
  end

end

LaTex

set(groot, 'defaultAxesTickLabelInterpreter',   'latex');
set(groot, 'defaultLegendInterpreter',          'latex');
set(groot, 'defaultTextInterpreter',            'latex');

Object-Oriented-Programming (OOP)

Objektorientiertes Programmieren in MATLAB
Einführung in die Objekt-Orientierte Programmierung mit MATLAB

Object-Oriented Programming
Create a Simple Class
Class Components
Class Syntax Guide
Automatic Updates for Modified Classes
Handle Class Destructor
Class Constructor Methods

Object Oriented Programming in Matlab: basics

Value Class vs. Handle Class

How to modify properties of a Matlab Object
Comparison of Handle and Value Classes

Callbacks

Write Callbacks for Apps Created Programmatically
Class Methods for Graphics Callbacks
Listener Callback Syntax
Callback Execution
Create Function Handle (Procedural)

Overload Methods

How to overload user defined functions in Matlab?
Operator Overloading

Objects

Use a MATLAB Timer Object
timer class, Create object to schedule execution of MATLAB commands
Timer Callback Functions

Functions

integral, Numerical integration
num2str, Convert numbers to character array
patch, Create one or more filled polygons
roots, Polynomial roots (Nullstellen des Polynoms)
fzero, Root of nonlinear function

Array
setdiff, Set difference of two arrays

Variables
varargin, Variable-length input argument list
exist, Check existence of variable, script, function, folder, or class
varargin, Variable-length input argument list
nargin, Number of function input arguments

Nice Way to Set Function Defaults
How to support default parameter in MATLAB FUNCTION ?

function y = somefun2(a,b,opt1,opt2,opt3)
    % Some function with 2 required inputs, 3 optional.

    % Check number of inputs.
    if nargin > 5
        error('myfuns:somefun2:TooManyInputs', ...
            'requires at most 3 optional inputs');
    end

    % Fill in unset optional values.
    switch nargin
        case 2
            opt1 = eps;
            opt2 = 17;
            opt3 = @magic;
        case 3
            opt2 = 17;
            opt3 = @magic;
        case 4
            opt3 = @magic;
    end
end

function y = somefun2Alt(a,b,varargin)
    % Some function that requires 2 inputs and has some optional inputs.

    % only want 3 optional inputs at most
    numvarargs = length(varargin);
    if numvarargs > 3
        error('myfuns:somefun2Alt:TooManyInputs', ...
            'requires at most 3 optional inputs');
    end

    % set defaults for optional inputs
    optargs = {eps 17 @magic};

    % now put these defaults into the valuesToUse cell array, 
    % and overwrite the ones specified in varargin.
    optargs(1:numvarargs) = varargin;
    % or ...
    % [optargs{1:numvarargs}] = varargin{:};

    % Place optional args in memorable variable names
    [tol, mynum, func] = optargs{:};
    
end

Try/Catch and Exception
try, catch, Execute statements and catch resulting errors
Throw an Exception
throw, Throw exception
error, Throw error and display message

Complex number
real, Real part of complex number
imag, Imaginary part of complex number
conj, Complex conjugate
angle, Phase angle
abs, Absolute value and complex magnitude

isType
is, Detect state
isscalar, Determine whether input is scalar
ismatrix, Determine whether input is matrix
isnumeric, Determine if input is numeric array
isempty, Determine whether array is empty
isnan, Array elements that are NaN
iscell, Determine whether input is cell array
istable, Determine whether input is table

Symbolic Toolbox
fplot, Plot symbolic expression or function
subs, Symbolic substitution

Window
figure, Create figure window
gcf, Current figure handle
clf, Clear current figure window
groot, Graphics root object
findobj, Locate graphics objects with specific properties
set, Set graphics object properties
get, Query graphics object properties

set(0, 'CurrentFigure', figureHandle)
fig = get(groot,'CurrentFigure');

2D Plot
linspace, Generate linearly spaced vector
plot, 2-D line plot
scatter, Scatter plot
stem, Plot discrete sequence data
line, Create primitive line

3D Plot / Mesh
plot3, 3-D line plot
scatter3, 3-D scatter plot
quiver3, 3-D quiver or velocity plot
meshgrid, 2-D and 3-D grids
contour, Contour plot of matrix
fill3, Filled 3-D polygons
How can I plot a 3D-plane in Matlab?

Axis
gca, Current axes or chart
cla, Clear axes
subplot, Create axes in tiled positions
hold, Retain current plot when adding new plots
axis, Set axis limits and aspect ratios
xlim, Set or query x-axis limits
xlabel, Label x-axis
legend, Add legend to axes
daspect, Control data unit length along each axis
pbaspect, Control relative lengths of each axis
Control Ratio of Axis Lengths and Data Unit Lengths
Manipulating Axes Aspect Ratio

grid on;     % Nur grobe Linien einschalten
grid minor;  % Nur feine Linien einschalten

% Entweder
ax = gca;
ax.GridColorMode = 'manual';
ax.GridAlphaMode = 'manual';
ax.GridColor     = [0.0, 1.0, 0.0];
ax.GridAlpha     = 1.0;

ax.MinorGridColorMode = 'manual';
ax.MinorGridAlphaMode = 'manual';
ax.MinorGridColor     = [1.0, 0.0, 0.0];
ax.MinorGridAlpha     = 0.4;

% Oder
set(gca, 'GridColorMode', 'manual');
set(gca, 'GridAlphaMode', 'manual');
set(gca, 'GridColor', [0.0, 1.0, 0.0]);
set(gca, 'GridAlpha', 1.0);

p1 = plot(t1, y1);
hold on;
grid minor;
p2 = plot(t2, y2);

legend([p1, p2], 'sin(x)', 'cos(x)',...
       'Location','northwest',
       'Orientation','horizontal');
fig = figure(1);
ax  = fig.CurrentAxes;

% DOESN'T WORK!!
hold(ax,'on');

% Set gca and use 'current axis' (gca)
axis(ax)
hold on;

Round / Floor / Ceiling
floor, Round toward negative infinity
ceil, Round toward positive infinity
round, Round to nearest decimal or integer
fix, Round toward zero

Time and Date
clock, Current date and time as date vector
datetime, Create array based on current date, or convert from date strings or numbers
posixtime, Convert MATLAB datetime to POSIX time
datestr, Convert date and time to string format
datenum, Convert date and time to serial date number
Date and Time Arithmetic
datetime Properties

>> c = clock()
    2.0170    0.0050    0.0120    0.0160    0.0290    0.0050

>> fix(c)
        2017           5          12          16          29           4

>> t = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss Z')
   2017_05_12_16_35_19 (as datetime object)

>> t = datetime('now');
>> datestr(t, 'yyyy_MM_dd_HH_mm_ss')
2017_35_12_16_05_28

>> t = datetime('now');
>> unix_time = posixtime(t);
>> t = datetime(unix_time, 'ConvertFrom', 'posixtime');

>> num2str(posixtime(datetime('now')))
1494612053.581
>> num2str(posixtime(datetime('now')) * 1000)
1494611994358

Axis-Ticks
xticks, Set or query x-axis tick values (DOESN’T WORK!)
Specify Axis Tick Values and Labels

Camera
camva, Set or query camera view angle
campos, Set or query camera position
camzoom, Zoom in and out on scene

Lineare Algebra
linsolve , Solve linear system of equations given in matrix form
tril, Lower triangular part of matrix
triu, Upper triangular part of matrix
diag, Create diagonal matrix or get diagonal elements of matrix

Quaternion
quatmultiply, Calculate product of two quaternions
quatinv, Calculate inverse of quaternion
quat2rotm, Convert quaternion to rotation matrix
quatnormalize, Normalize quaternion
eul2quat, Convert Euler angles to quaternion
quat2eul, Convert quaternion to Euler angles
quat2tform, Convert quaternion to homogeneous transformation
tform2quat, Extract quaternion from homogeneous transformation

Euler
angle2dcm, Convert rotation angles to direction cosine matrix

Images / Bilder
imread, Read image from graphics file
imfinfo, Information about graphics file
imshow, Display image
image, Display image from array
imagesc, Display image with scaled colors
im2uint8, Convert image to 8-bit unsigned integers
rgb2gray, Converts the truecolor image RGB to the grayscale intensity image I

Radon Transformation
radon, Radon transform

Serial
serial, Create serial port object
instrfind, Read serial port objects from memory to MATLAB workspace
fopen (serial), Connect serial port object to device
readasync, Read data asynchronously from device
Serial Write and Read Data
Serial Events and Callbacks
Timeout, Waiting time to complete a read or write operation

File
fopen, Open file, or obtain information about open files
fwrite, Write data to binary file
fread, Read data from binary file
fclose, Close one or all open files
fprintf, Write data to text file

Regelungstechnik / Control System
step, Step response plot of dynamic system; step response data
stepDataOptions, Options set for step
tf, Create transfer function model, convert to transfer function model
zpk, Create zero-pole-gain model; convert to zero-pole-gain model
impulse, Impulse response plot of dynamic system; impulse response data
ss, Create state-space model, convert to state-space model

Filter
filter, 1-D digital filter: processing the input data ONLY in forward directions
filtfilt, Zero-phase digital filtering: processing the input data in forward and reverse directions
designfilt, Design digital filters
conv, Convolution and polynomial multiplication

ECG / EKG
R Wave Detection in the ECG
Peak Analysis
Example of Measuring Heart Rate from Acquired ECG Signals
ECG simulation using MATLAB
Complete Pan Tompkins Implementation ECG QRS detector

s       = tf('s');
I_Gs    = Ks / (T1 * s);
IT1_Gs  = Ks / (T1 * s^2 + s);

[  I_y,   I_t] = step(  I_Gs, Tend);
[IT1_y, IT1_t] = step(IT1_Gs, Tend);

Properties

Root Properties, Graphics environment and state information
Figure Properties, Control appearance and behavior of figure window
Chart Line Properties (plot)
Axes Properties
Text Properties
Legend Properties
Scatter Series Properties

Camera Properties

Low-Level Camera Properties
Low-Level Camera Properties

CameraViewAngle Specifies the field of view of the “lens.” If you specify a value for CameraViewAngle, MATLAB overrides stretch-to-fill behavior (see the “Aspect Ratio” section).
CameraViewAngleMode In automatic mode, MATLAB adjusts the view angle to the smallest angle that captures the entire scene. In manual mode, you specify the angle.
Setting CameraViewAngleMode to manual overrides stretch-to-fill behavior.
% disable the stretch-to-fill behavior

set(gca,'CameraViewAngleMode','manual');
set(gca,'CameraViewAngle',10);
set(gca,'DataAspectRatio',[1 1 1]);

daspect([1 1 1]);

%         X      Y      Z
win = [ -1, 1, -1, 1, -1, 1];
axis equal;
axis(win);

=== OR ===

camzoom(1);

camzoom sets the axes CameraViewAngle property, which in turn causes the CameraViewAngleMode property to be set to manual. Note that setting the CameraViewAngle property disables the MATLAB stretch-to-fill feature (stretching of the axes to fit the window). This may result in a change to the aspect ratio of your graph. See the axes function for more information on this behavior.

MATLAB Game Programming

Gaming in Matlab
MATLABTETRIS

Call by value vs. Call by reference

Does MATLAB pass parameters using “call by value” or “call by reference”?
Can MATLAB pass by reference?
Pass variable by reference to function

MEST3 / PES3 Mechanik

Kosinussatz

Lager (Statik)
Werkstoff
Materialkonstante
Festigkeit
Zugfestigkeit
Druckfestigkeit
Freiheitsgrad
Lagerungskonzepte von Wellen, Fest-Los-Lagerung (FLL)
Materialkennwerte

Spannungen

Mechanische Spannung
Schnittprinzip
Kräftesystem
Schnittreaktion, Q=Querkraft, N=Normalkraft, M=Biegemoment
Actio und Reactio
Impulserhaltungssatz
Mechanische Aspekte der Deformation, ETHZ (PDF)

Schnittkraftmeister (App)

d’Alembertsches Prinzip

Trägheitskraft
Dynamisches Gleichgewicht (Technische Mechanik) / d’Alembertsche Trägheitskraft
d’Alembertsches Prinzip

Verbindungstechnik

Verbindungstechnik
Pressfügen / Presssitz
Toleranz (Technik)
Passung / Übermasspassung / Presspassung
Spiel (Technik)

Schwerpunkt / Kräftemittelpunkt vs. Massenmittelpunkt

Der Schwerpunkt eines Körpers ist derjenige Punkt, in dem
man sich das räumlich verteilte Gewicht konzentriert denken
kann, ohne dass sich die statische Wirkung ändert.
In der Kinetik wird durch diese Beziehungen die Lage
des Massenmittelpunktes definiert. Für konstante Erdbeschleunigung
g fallen somit der Schwerpunkt und der Massenmittelpunkt zusammen.

Geometrischer Schwerpunkt
Massenmittelpunkt

Mehrkörpersystem

Mechanisches System von Einzelkörpern, die untereinander durch Gelenke oder Kraftelemente (z. B. Federn, Dämpfer) gekoppelt sind und unter dem Einfluss von Kräften stehen.
Mehrkörpersystem
Mehrkörpersimulation
Prinzip des kleinsten Zwanges

FEM

Finite-Elemente-Methode (FEM)
Verschiebungsmethode
Berechnungsingenieur

Eigenfrequenz

Eigenfrequenz
Moden

Scheinkräfte

Trägheit
Gleichförmige Bewegung
Drehmoment
Corioliskraft
Zentrifugalkraft
Eulerkraft

Moment

Moment ist einfach Kraft * Hebelarm zu einen Bezugspunkt. Das Drehmoment ergibt sich aus der Summe der Momente.

Wenn du zum Beispiel einen statischen Balken berechnest dann kannsd du einen Bezugspunkt wählen und die Momente dazu berechnen, in Summe werden diese null sein, somit dreht sich auch nichts und das Drehmoment ist null. Wenn du einen anderen Bezugspunkt wählst erhälst du wieder unterschiedliche Momente aber in Summe wieder null.

Es herrscht hier auch keine strikte Definition anscheinend da manchmal zu diesen Momenten auch Drehmomente gesagt wird, wenn jeder weiß was gemeint ist ists auch egal. Wahrscheinlich weil man meistens den Bezugspunkt in die Drehachse legt.

Moment wird in der Technik auch anders verwendet zum Beispiel Flächenmoment, Trägheitsmoment.

Dabei rennt aber alles im Grundprinzip auf Kraft mal Hebelarm hinaus.
Da man zum Beispiel das Flächenmoment mit konstanter Dichte, Breite multipliziert und konstanter Beschleunigung multipliziert sofort das Kraftmoment erhält.
oder beim Trägheitsmoment mit konstanter winkelbeschleunigung multipliziert sofort das Moment der wirkenden Trägheitskräfte erhält.

Man kann also hier die Momente reduzieren auf das wesentliche, wenn einige Faktoren konstant bleiben, muß also nicht die Kraft generell betrachten sondern die Masse oder nur die Geometrie.

da Kraft=m*a= Geometrie * dichte *a

Jedes resultiernde Moment ist ein Drehmoment auch das Biegemoment, denn dabei drehen sich die Teile eines Balkens um die neutrale Faser solange bis das Material das GleichGewicht hergestellt hat.
Beim Torsionsmoment verdrehen sich die einzelnen Zylinderteile einer Welle ineinander.
Das Moment folgt direkt aus dem Energiesatz

Was ist ein Moment
Kraftmoment – Drehmoment, Unterschied

Moment
Drehmoment
Trägheitsmoment
Flächenträgheitsmoment
Biegemoment

Motor

Balkentheorie

Balkentheorie
Neutrale Faser
Querkraft
Normalkraft

Torsion

Torsion (Mechanik)
Antriebswelle
Drehstabfeder
Schraubenfeder
Widerstandsmoment

ingenieurkurse

Flächenträgheitsmomente – Elastostatik – Satz von Steiner – Zusammengesetzte Flächen
Schnittgrößen:
Einzelkräfte am Balken

StudyHelpTV

Normalspannung / Biegespannung bestimmen – Mechanik

CATIA

catia sketcher basic constraints
CATIA V5 Basic Beginner Tutorial – 2 | CATIA Sketcher & Pad Tutorial
CATIA V5: The Basics – Tutorial 2: The Sketch Workbench
How to change the grid size in CATIA V5 tutorial

CATIA Sketcher Tutorial | CATIA Sketcher | CATIA Sketching
CAD CATIA V5 – Sketch / Zeichnung erstellen
CATIA Tutorials for Beginners – 1

sketcher position
Creating a Positioned Sketch
Why Use a Positioned Sketch in CATIA V5 When a Normal (Sliding) Sketch Does the Same Thing?

Wechselstromlehre

Wikipedia

Blindwiderstand
Eulersche Formel
Komplexe Wechselstromrechnung
Erweiterte symbolische Methode der Wechselstromtechnik
Laplace-Transformation
Phasenverschiebung
Elektrische Leistung
Wirkleistung
Scheitelwert
Effektivwert
Gaußsche Zahlenebene

Formelsammlung

Formelsammlungen für die Technikerschule
Elektrotechnik Formelsammlung Wechselstrom (PDF)

Blindleistungskompensation

Grundlagen zur Blindleistungskompensation
Berechnungsformeln zum Kondensator
ESKAP Blindstromkompensation Grundlagen (PDF)
Blindleistungskompensation

Wechselspannung / Wechselstrom

Ohmsche, induktive und kapazitive Widerstände im Wechselstromkreis
Kapazitiver Blindwiderstand
Induktiver Blindwiderstand

Drehstrom

Sternschaltung
Dreieckschaltung
Drehstrom-Synchronmaschine (= Generator/Motor)
Dreiphasenwechselstrom
Wheatstonesche Messbrücke

Transformator

Transformator
Realer Transformator

Numerische Mathematik / Numerik

  • normalisierten Gleitkommazahl

C++ Libraries

Richard: Linear Regression with wxWidgets and wxFreeChart
Armadillo (C++ library)
MLPACK (C++ library)

Norm / Vektorraum / Lipschitz-Stetigkeit

Kondition
Stabilität (Numerik)

Vektorraum
Lipschitz-Stetigkeit
Umgebung
Definitheit
Norm
Maximumsnorm
p-Norm
Euklidische Norm
Natürliche Matrixnorm
Einheitskugel

b

Lineare Algebra
Lineares Gleichungssystem
Matrix
Kern einer Matrix
Bild einer Matrix
Determinante
Regel von Sarrus
Rang
Rangsatz
Defekt
Eigenwertproblem
Lösungsmenge

a

Dreiecksungleichung

16A.2 Vektorraum von Funktionen, Norm, Skalarprodukt, Vorbereitung Fourier-Reihe
Lipschitz-Stetigkeit

Floating-Point Number / Gleitkommazahlen

IEEE 754
Mantisse
Maschinengenauigkeit

IEEE 754 Umrechner

Matrix Libraries / Lineare Algebra Libraries

Initialize an
“eye” (identity) matrix array in C

macro for simulating access two dimensional array in C
utarray: dynamic array macros for C
Developing a Matrix Library in C (PDF)
Armadillo – C++ linear algebra library
Vector and matrix functions
Matrix multiplication in c
Matrix determinant algorithm C++

Introduction to Algorithms, Third Edition
By Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein