


| Eigenschaft | alter Wert | neuer Wert |
|---|---|---|
| FontSize | 10 | 16 |
| String | Static Text | Eigenschwingungen eines Fachwerks |
| BackgroundColor | dunkelgrau | hellgrau (z.B. [0.941 0.941 0.941]) |
| Element | Eigenschaft | alter Wert | neuer Wert |
|---|---|---|---|
| text2 | String | Static Text | Ordnung der Eigenschwingung |
| text2 | BackgroundColor | dunkelgrau | hellgrau |
| text3 | String | Static Text | Eigenfrequenz: |
| text3 | BackgroundColor | dunkelgrau | hellgrau |
| text4 | String | Static Text | -1.234567 |
| text4 | BackgroundColor | dunkelgrau | hellgrau |
| text5 | String | Static Text | Hz |
| text5 | BackgroundColor | dunkelgrau | hellgrau |
| edit1 | String | Edit Text | 1 |
| edit1 | BackgroundColor | grau | weiß |
| hObject | Zeiger (handle) auf das Textfeld edit1 |
| eventdata | unbenutzt |
| handles | enthält Zeiger auf alle Elemente und ggf. Benutzerdaten |
truss = loadTruss('bruecke');
[M, C] = createMatrices(truss);
[Phi, freq] = computeEigenvalues(M, C);
modeNr = str2double(get(hObject,'String'));
if (1 <= modeNr) && (modeNr <= 2*truss.N)
fe = freq(modeNr);
sFreq = sprintf('%8.6f', fe); % Eigenfrequenz als String
set(handles.text4, 'String', sFreq);
end
truss = loadTruss('bruecke');
[M, C] = createMatrices(truss);
[Phi, freq] = computeEigenvalues(M, C);
% Setze Frequenz für Startwert 1
fe = freq(1);
sFreq = sprintf('%8.6f', fe);
set(handles.text4, 'String', sFreq);
% speichere Daten als GUI Data handles.truss = truss; handles.freq = freq;
freq = handles.freq; truss = handles.truss;

truss = handles.truss;
Phi = handles.Phi;
modeNr = str2double(get(handles.edit1, 'String'));
if (1 <= modeNr) && (modeNr <= 2*truss.N)
xe = Phi(:, modeNr);
F = plotModeAnimation(xe, truss);
movie(F,4);
plotMode(xe, truss);
end