Difference between revisions of "Applets:Periodendauer periodischer Signale"

From LNTwww
Line 144: Line 144:
 
     }
 
     }
  
xaxis = plotBox.create('axis', [[0, 0], [1,0]], {name:'\\[t/T\\]', withLabel:true, label:{position:'rt', offset:[-25, 15]}});
+
xaxis1 = plotBox.create('axis', [[0, 0], [1,0]], {name:'\\[t/T\\]', withLabel:true, label:{position:'rt', offset:[-25, 15]}});
yaxis = plotBox.create('axis', [[0, 0], [0, 1]], {name:'\\[x(t)\\]', withLabel:true, label:{position:'rt', offset:[10, -5]}});
+
yaxis1 = plotBox.create('axis', [[0, 0], [0, 1]], {name:'\\[x(t)\\]', withLabel:true, label:{position:'rt', offset:[10, -5]}});
  
 
//Definition der Funktion zum An- und Ausschalten des Koordinatengitters
 
//Definition der Funktion zum An- und Ausschalten des Koordinatengitters
 
function showgrid() {
 
function showgrid() {
 
     if (gridbox.checked) {
 
     if (gridbox.checked) {
       xaxis = plotBox.create('axis', [[0, 0], [1,0]], {});
+
       xaxis1 = plotBox.create('axis', [[0, 0], [1,0]], {});
       yaxis = plotBox.create('axis', [[0, 0], [0, 1]], {});
+
       yaxis1 = plotBox.create('axis', [[0, 0], [0, 1]], {});
 
     } else {
 
     } else {
     xaxis.removeTicks(xaxis.defaultTicks);
+
     xaxis1.removeTicks(xaxis1.defaultTicks);
     yaxis.removeTicks(yaxis.defaultTicks);
+
     yaxis1.removeTicks(yaxis1.defaultTicks);
 
     }
 
     }
 
     plotBox.fullUpdate();
 
     plotBox.fullUpdate();

Revision as of 07:01, 15 September 2017

Funktion: $$x(t) = A_1\cdot cos\Big(2\pi f_1\cdot t- \frac{2\pi}{360}\cdot \phi_1\Big)+A_2\cdot cos\Big(2\pi f_2\cdot t- \frac{2\pi}{360}\cdot \phi_2\Big)$$