Question

text file I/O

Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input ...

10 months ago | 3 answers | 1

Answered

Write a function called max_sum that takes v, a row vector of numbers, and n, a positive integer as inputs. The function needs to find the n consecutive elements of v whose sum is the largest possible.

jan and walter take a look at this code this is giving me correct answers except for negative elements array function [summa, i...

Write a function called max_sum that takes v, a row vector of numbers, and n, a positive integer as inputs. The function needs to find the n consecutive elements of v whose sum is the largest possible.

jan and walter take a look at this code this is giving me correct answers except for negative elements array function [summa, i...

11 months ago | 0

Question

indexing of starting element of sum

function [summa,index=nba_aj(b,n) s=length(b); i=0; if n>s a=...

11 months ago | 0 answers | 0

Question

maximum number and indexing

how can i find maximun number from an array for example .a=[2,44,6,77,3,9],how can i find max 2 numbers which are ,44 and 77 fro...

11 months ago | 1 answer | 0

Answered

Write a function called halfsum that takes as input an at most two-dimensional matrix A and computes the sum of the elements of A that are in the diagonal or are to the right of it. example, the input is [1 2 3; 4 5 6; 7 8 9],the ans is 26

CAN ANYONE POST THE SOLUTION FOR THESE

Write a function called halfsum that takes as input an at most two-dimensional matrix A and computes the sum of the elements of A that are in the diagonal or are to the right of it. example, the input is [1 2 3; 4 5 6; 7 8 9],the ans is 26

CAN ANYONE POST THE SOLUTION FOR THESE

11 months ago | 0

Question

how can i solve this ,can anyone provide me with code? whats wrong with my code ?

Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a ...

11 months ago | 11 answers | 0