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