Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I change this code to plot finger below without line red coler

1 回表示 (過去 30 日間)
Yasir Ghazi
Yasir Ghazi 2017 年 11 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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