Question

Outputting cell vectors that contain specific information help?

I am trying to formulate a code that takes in input cell array of strings, evaluates the contents of each cell and outputs the c...

3 mois ago | 1 answer | 0

Question

Output argument 'answers' (and maybe others) not assigned during call to "..."

I am trying to create a function that sums up all the values of the fibonacci series using only recursion, but I keep getting th...

3 mois ago | 2 answers | 0

Question

How do I make a function provide a ordered list?

I need to create a function that outputs and ordered list based on the length of the input. The input is a struct with field na...

3 mois ago | 1 answer | 0

Question

Strings vs Char and array indices

Why do I keep getting this error message? Array indices must be positive integers or logical values. Error in movies_by_c...

3 mois ago | 1 answer | 0

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3 mois ago

Question

Cell Arrays and Indexing?

The goal of my code is to take an n-by-n logical array of values and output a cell vector containing the column indices of each ...

3 mois ago | 2 answers | 0

Question

Cell arrays and Indexing with Cells HELP?

An assignment I have says... "An n-by-n square logical matrix can be represented by a cell vector of n elements where the kth e...

3 mois ago | 1 answer | 0

Question

Cells and Cell vectors help?

An assignment I have says... An n-by-n square logical matrix can be represented by a cell vector of n elements where the kth el...

3 mois ago | 1 answer | 0

Question

Storing doubles in the smallest integer class for which they fit without changing their value?

I am trying to create function that accepts an input array, A, and converts it to the smallest integer class for which it can be...

3 mois ago | 1 answer | 0

Answered

I'm trying to create a code that determines whether a word (or phrase) is a palindrome. The code only needs to look at the actual letters within the input string, but I'm not sure how to do that.

For anyone looking for the right code for this question I have attached the code that worked: function palindrome = hw4_probl...

I'm trying to create a code that determines whether a word (or phrase) is a palindrome. The code only needs to look at the actual letters within the input string, but I'm not sure how to do that.

For anyone looking for the right code for this question I have attached the code that worked: function palindrome = hw4_probl...

4 mois ago | 0

Question

I'm trying to create a code that determines whether a word (or phrase) is a palindrome. The code only needs to look at the actual letters within the input string, but I'm not sure how to do that.

The jist of the problem is to create a function that determines whether a string input is a palindrome by returning the logical ...

4 mois ago | 3 answers | 0

Answered

I am trying to write a function that takes both an input vector and scalar (v and n respectively). It needs to output the maximum value of the sum of n consecutive integers of v, as well as the index of the first term in v.

For anyone still confused by the above answer, here is the complete code: function [max_sum, idx] = maxval(v, n) sums = movs...

I am trying to write a function that takes both an input vector and scalar (v and n respectively). It needs to output the maximum value of the sum of n consecutive integers of v, as well as the index of the first term in v.

For anyone still confused by the above answer, here is the complete code: function [max_sum, idx] = maxval(v, n) sums = movs...

4 mois ago | 0

Question

I am trying to write a function that takes both an input vector and scalar (v and n respectively). It needs to output the maximum value of the sum of n consecutive integers of v, as well as the index of the first term in v.

I am trying to write a function that takes both an input vector and scalar (v and n respectively). It needs to output the maximu...

4 mois ago | 2 answers | 0