Community Profile

photo

vidushi Chaudhary


Last seen: fast 4 Jahre vor Aktiv seit 2020

Followers: 0   Following: 0

Statistiken

  • Thankful Level 2
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


What is wrong with my code.It's not producing correct figure.The axis should run from -1 to 1,but it's not!
Problem 24. Write a function called make_square_waves that takes two positive integers as input arguments (it does not have to ...

fast 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


What is wrong with my code.I want to connect stars(*)by straight line,but it's printing only points,not line!
function draw_constellations set(gcf,'color','m'); set(gca,'color','m'); axis([0 100 0 100]) hold on; ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Write a function max_sum that takes v a row vector of numbers & n,a positive integer as inputs.The function needs to find n consecutive elements of v whose sum is largest possible.It returns summa & index of first element of n consecutive integers.
%Example-[summa,index]=max_sum([1 2 3 4 5 4 3 2 1],3) % summa=13 % index=4 function [summa,index]=max_sum(v,n) total=v(1,...

fast 4 Jahre vor | 23 Antworten | 2

23

Antworten

Frage


Please find the error
%Write a function called max_sum that takes v as a row vector of numbers, & n,a postive integer as inputs.The function needs to ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I overcome the error "variable admit must be of data type logical instead of double"..I have to return logical values true or false using the function below.what is wrong with this?
function admit=eligible(v,q) avg=(v+q)/2; if avg>=92 ...%% && v>88 ... %% && q>88 %% admit=1; else admit=0...

fast 4 Jahre vor | 1 Antwort | 2

1

Antwort