hi, I'm trying to solve a half wave rectifier problem. But i'm getting an error as
Attempted to access v(1.1); index must be a positive integer or logical.Error in ==> Untitled at 4 v(t)=0.1*sin(t)
Also i'm getting single discrete value in the plot
Here is my code
clear all; close all;for t=1:0.1:2*piif t<pi v(t)=0.1*sin(t) else v(t)=0; endstem(t,v);end
Please help me to solve dis…..
Best Answer