Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How can I change this code to plot finger below without line red coler
조회 수: 1 (최근 30일)
이전 댓글 표시
clc;
clear all;
close all;
fs = 1000;
t = 0:1/fs:0.2;
Im = 504.38; % Volt
f0 = 60 ;% Hz
q = 0.5 ; % Voltage Gain
a=0.5;
alpha = 0;
Ia = Im*q*(a*(cos(2*pi*f0*t + alpha)))+((1-a)*(cos(2*pi*f0*t + alpha)));
Ib = Im*(q - 0.2*q*(t>= 0.1)).*(a*(cos(2*pi*f0*t + alpha)))+((1-a)*(cos(2*pi*f0*t + alpha)));
figure,
plot(t,Ia,'r',t,Ib,'b');
xlabel('Time');
ylabel('Ia and Ib');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169762/image.png)
댓글 수: 0
답변 (1개)
Bshara Murr
2017년 11월 18일
편집: Walter Roberson
2017년 11월 18일
clc; clear all; close all;
fs = 1000; t = 0:1/fs:0.2;
Im = 504.38; % Volt
f0 = 60 ;% Hz
q = 0.5 ; % Voltage Gain
a=0.5;
alpha = 0;
Ia = Im*q*(a*(cos(2*pi*f0*t + alpha)))+((1-a)*(cos(2*pi*f0*t + alpha)));
Ib = Im*(q - 0.2*q*(t>= 0.1)).*(a*(cos(2*pi*f0*t + alpha)))+((1-a)*(cos(2*pi*f0*t + alpha)));
plot(t,Ib,'b'); xlabel('Time'); ylabel('Ia and Ib');
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!