Feeds
已解决
Sum of adjacent elements in a vector
Given a vector v, return a vector s containting the sum of every two adjacent elements in the vector. Every element s(i) cont...
3 years 前
已解决
Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...
3 years 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
5 years 前
已解决
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
5 years 前
已解决
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:...
5 years 前
提问
Matlab calsses - PreGet listener on structures
Hello, I am using some basic Matlab classes with some dynamic defined properties. I added listeners 'PreGet' and 'PostGet' f...
9 years 前 | 1 个回答 | 0
1
个回答已回答
Matlab matrix operations without loops
Both answers from Azzi Abdelmaleka and Jan Simon are very helpful, regarding the matter of runtime optimization. Though, I am s...
Matlab matrix operations without loops
Both answers from Azzi Abdelmaleka and Jan Simon are very helpful, regarding the matter of runtime optimization. Though, I am s...
12 years 前 | 0
提问
Matlab matrix operations without loops
Hello. I have an issue with a code performing some array operations. It is getting to slow, because I am using loops. I am tryin...
12 years 前 | 6 个回答 | 0