Community Profile

photo

Catalina Guta


Last seen: 6 maanden ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


two outputs of a function
function [cnt,A] = matrice_nou_vechi(A,noua,veche) cnt=0; for row=1:size(A,1) for col=1:size(A,2) if(A(row, col)...

meer dan 3 jaar ago | 2 answers | 0

2

answers

Question


i am trying to make a half wave rectified sine wave plot. what am i doing wrong?
T=2; t = 0:pi/100:2*pi; w=2*pi/T; if(sin(w*t)<0) y=0; else y=sin(w*t); end plot(t, y);

meer dan 3 jaar ago | 1 answer | 1

1

answer