Community Profile

photo

Raymond MacNeil


Last seen: 3日 前

University of British Columbia

70 2018 年以降の合計貢献数

連絡する

Raymond MacNeil's バッジ

  • First Review
  • Community Group Solver
  • Knowledgeable Level 1
  • Introduction to MATLAB Master
  • Commenter
  • Promoter
  • Solver
  • Thankful Level 1
  • First Answer

詳細を表示...

貢献した分野
表示方法

解決済み


Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

4ヶ月 前

解決済み


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

4ヶ月 前

解決済み


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

4ヶ月 前

解決済み


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

4ヶ月 前

解決済み


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

4ヶ月 前

質問


Sequential, row-wise reshape of an M–by–N matrix to form a 1–by–N vector
Dumb question. Let's say I have the following matrix: A = [2 1 4 3 6 5 8 7 10 9]; I...

5ヶ月 前 | 1 件の回答 | 0

1

回答

回答済み
Compare Data from two tables and show how close the comparison is as a percentage
How are you loading in the data? If you're currently using readtable(), I strongly encourage you to instead use textscan(). In d...

5ヶ月 前 | 1

| 採用済み

回答済み
Removing zeros from a binary array if length of zeros is lesser than a value
k = [0;0;0;0;0;0;0;1;0;1;1;1;0;0;0;0;0;0;1;1;0;0;0;0]; y = regexp(num2str(k)', '(?<=[0]{5,})0*', 'split'); z = strjoin(cellfun...

7ヶ月 前 | 0

解決済み


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

9ヶ月 前

解決済み


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

9ヶ月 前

解決済み


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

9ヶ月 前

解決済み


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

9ヶ月 前

解決済み


Create a vector
Create a vector from 0 to n by intervals of 2.

9ヶ月 前

解決済み


Find max
Find the maximum value of a given vector or matrix.

9ヶ月 前

解決済み


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

9ヶ月 前

解決済み


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

9ヶ月 前

解決済み


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

9ヶ月 前

解決済み


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

9ヶ月 前

解決済み


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

9ヶ月 前

回答済み
My school needs to upgrade its license. I do not know what toolboxes to request. Who should I ask for advice?
Hi Valerie: I was at one point a lab technichian, and though I did not have the higher-level adminstrative role that you seem ...

9ヶ月 前 | 0

| 採用済み

解決済み


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

9ヶ月 前

解決済み


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

9ヶ月 前

解決済み


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

9ヶ月 前

解決済み


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

9ヶ月 前

解決済み


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

9ヶ月 前

解決済み


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

9ヶ月 前

解決済み


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

9ヶ月 前

解決済み


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

9ヶ月 前

質問


regexp: what am I missing from the documentation?
I have tried to carefully read the regexp documentation, and I am able to sucessfully implement regexp in the simplest cases. F...

9ヶ月 前 | 1 件の回答 | 0

1

回答

解決済み


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

9ヶ月 前

Load more