# champions2015

**Statistics**

RANK**180 303**

of 284 493

REPUTATION**0**

CONTRIBUTIONS

**7** Questions

**1** Answer

ANSWER ACCEPTANCE **
85.71%
**

VOTES RECEIVED**0**

RANK

of 19 211

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 137 242

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

Whenever I run this function, all is good if A(i)==N. However when it is not found, the function seems to run super slowly that i never end up getting the output of 0. Do I need to preallocate somewhere? If so, what would it be?

"Write a function, Finder, that receives an array of numbers A and a number N and returns the position of N within the array A o...

ungefär 6 år ago | 1 answer | 0

### 1

answerQuestion

In this question, would dig be 2 inputs, such as 91 and 99? And lim can be any number the user calls?

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

ungefär 6 år ago | 4 answers | 0

### 4

answersQuestion

For the second part of the question, I keep on getting the following error. I am assuming this is because I need to somehow create a cell inside the cell corresponding to Out? What would be the simplest way of doing this?

An n-by-n square logical matrix can be represented by a cell vector of n elements where the kth element corresponds to the kth r...

ungefär 6 år ago | 1 answer | 0

### 1

answerAn n-by-n square logical matrix can be represented by a cell vector of n elements where the kth element corresponds to the kth row of the matrix. Each element of the cell vector is a row vector of positive integers in increasing order representing th

Thanks Stephen! I applied your code which helped me understand what the function was doing, and what the question was asking! I ...

ungefär 6 år ago | 0

Question

whenver i insert this if statement inside a for loop, i get an error. Could someone please explain why? Much appreciated!

if class(input(i))=='double' in this case, i want to check if the value of input(i) in the string 'input' is a number &nbs...

ungefär 6 år ago | 3 answers | 0

### 3

answersQuestion

An n-by-n square logical matrix can be represented by a cell vector of n elements where the kth element corresponds to the kth row of the matrix. Each element of the cell vector is a row vector of positive integers in increasing order representing th

I don't exactly understand what the question is asking here, despite reading it over and over multiple times. Is the input the n...

ungefär 6 år ago | 2 answers | 0

### 2

answersQuestion

Write a function max_product that takes v a vector and n, a positive integer, as inputs and computes the largest product of n consecutive elements of v. It returns the product and the index of the element of v that is the first term of the product.

I can't seem to solve this. Anyone have any idea please?

ungefär 6 år ago | 2 answers | 0

### 2

answersQuestion

Write a function called spiral_diag_sum that takes an odd positive integer n as an input and computes the sum of all the elements in the two diagonals of the n-by-n spiral matrix.

function [ MySum ] = spiral_diag_sum( n ) MySum=1; if n==1 return end for i=3:2:n mult...

ungefär 6 år ago | 4 answers | 0