Community Profile

photo

Renwen Lin


Shanghai University of Finance and Economics

Last seen: Today Active since 2012

Professional Interests: History

Statistics

All
  • Commenter
  • Personal Best Downloads Level 1
  • First Review
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 3
  • First Submission
  • First Answer
  • Solver

View badges

Content Feed

View by

Solved


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

ungefär 15 timmar ago

Solved


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

2 dagar ago

Solved


Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

2 dagar ago

Solved


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

4 månader ago

Solved


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

4 månader ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

5 månader ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

5 månader ago

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

6 månader ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

6 månader ago

Solved


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...

6 månader ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

6 månader ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

6 månader ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

6 månader ago

Solved


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

6 månader ago

Solved


Return area of square
Side of square=input=a Area=output=b

6 månader ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

6 månader ago

Submitted


tableAgent: A chain-method table class in Matlab
@tableAgent: A class for applying chain method on table in Matlab, and providing with many useful methods functions

mer än 2 år ago | 1 download |

Answered
Is there a faster way than str2double() to convert from a string array into a matrix containing doubles?
Try this! Fast String to Double Conversion

mer än 2 år ago | 1

Submitted


Create Matlab Snippet for Your Own Toolbox
For VS Code user, create a matlab-snippet for your ower toolbox.

mer än 2 år ago | 2 downloads |

Submitted


bygroupRetimeMonthlyData
For every city or group, this function make sure that each year have 12 months with Matlab

mer än 2 år ago | 3 downloads |

Solved


Joining Ranges
You are given a n-by-2 matrix. Each row represents a numeric range, e.g. x = [0 5; 10 3; 20 15; 16 19; 25 25] contains...

nästan 3 år ago

Solved


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 ...

nästan 3 år ago

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:...

nästan 3 år ago

Submitted


mergecellkey: Merge cell by key
mergecellkey: Merge cell by key

mer än 8 år ago | 0 downloads |

Thumbnail

Submitted


cell2vars: Transform cell to vars
cell2vars: Transform cell's columns' to variables in workplace

nästan 9 år ago | 1 download |

Thumbnail

Submitted


vars2cell
% PURPOSE: Convert selected variables in matlab workspace to the cell's columns

nästan 9 år ago | 1 download |

Submitted


strcatrobust: Combine num, char and cell to one cellstr
% B = strcatrobust(1, {'a' 'b'},[2 , 3], 't') % B is {'1a2t' '1b3t'};

ungefär 9 år ago | 0 downloads |

Submitted


idrepetition: Find the index for the repetition terms in a cell
Find the index for the repetition terms in a cell % [ids a] = idrepetition(A) % linrenwen@gmail.co

ungefär 9 år ago | 0 downloads |

Submitted


isrepetition: Determine TRUE or FALSE for repetition terms in a cell
Determine TRUE or FALSE for repetition terms in a cell % tfs = isrepetition(A)

ungefär 9 år ago | 0 downloads |

Submitted


isnumericcell
isnumericcell

ungefär 9 år ago | 0 downloads |

Load more