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');

回答(1 个)

Bshara Murr
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');

此问题已关闭。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by