MATLAB: How can i plot positive magnitude only of a sine wave app designer i have been trying to plot the half positive of the sine wave without displaying the negative i couldnt find a way for it this is the function of the sine wave. DC_Voltage = ((A) * sin((2)*(pi*F)*(T)+(Phase))); Best Answer % get the index of only positive valuesidx = DC_Voltage>=0 ; plot(DC_Voltage(idx)) Related SolutionsMATLAB: Task for generating a wave %Sine wave examplef=3; %frequency [Hz]t=(0:1/(f*100):1);a=2; %amplitude [V]phi=0; %phasey=a*sin(2*pi*f*t+phi); %formulaplot(t,y)xlabel('Time') %labelylabel('Amplitude') %labeltitle('Sine Wave)'); %Title MATLAB: How can i plot a signal with amplitude, phase and frequency t = 1:0.01:2 ;amp = 7 ;phase = 11.14 ;f = 9 ; % I am assuming it as Hertzy = amp*sin(2*pi*f*t+phase) ;plot(t,y) Related QuestionSensorless bldc motor control
Best Answer