Community Profile

photo

amjad khan


Last seen: alrededor de 3 años hace Con actividad desde 2020

Followers: 0   Following: 0

Estadísticas

  • First Answer

Ver insignias

Feeds

Ver por

Respondida
if-statement with conditions.
function out(condition,in1,in2) if condition>0 % it is logical out=in1; else out=2; end

alrededor de 4 años hace | 0

Respondida
Calculate taxi fare by giving multiple inputs and single output
function fare=taxi_fare(distance,time) distance=ceil(distance-1) time=ceil(time) fare=5*(2+(distance-1)+0.25*time...

alrededor de 4 años hace | 1

Respondida
A basic question of matrix indexing can't get a proper output
A = [1:5; 6:10; 11:15; 16:20]; v=A(:,2) % assigning variable v to the second column of matrix "A" A(4,:)=0 % changing all the ...

alrededor de 4 años hace | 2