Community Profile

photo

Ashwin Renganathan


20 2017 이후 총 참여 횟수

Ashwin Renganathan's 배지

  • Thankful Level 1
  • Solver

세부 정보 보기...

참여 게시물
보기 기준

질문


Implementing the (polynomial) "kernel trick" in matlab
Given _p = 2_ vectors _x_ in _R^n_, _y_ in _R^n_, how to compute the kernel of order _m > 2_, which is of the form A = [one...

3년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Matlab Performance Question (Nested for loops vs inbuilt functions (cellfun, circshift))
I am using R2017b. I am trying to do the same thing 3 different ways. (1)using 2 nested for loops (2) replacing inner for loop w...

3년 이상 전 | 답변 수: 2 | 0

2

답변

질문


search for elements of a vector in a matrix (without using ismember)
I have a matrix A of size Nx2, N is large. I have another vector b of size nx1 and n<<N. I want to filter out those row indices ...

3년 이상 전 | 답변 수: 4 | 0

4

답변

해결됨


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

4년 이하 전

해결됨


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

4년 이하 전

해결됨


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

4년 이하 전

해결됨


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

4년 이하 전

해결됨


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

4년 이하 전

해결됨


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

4년 이하 전

해결됨


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

약 4년 전

해결됨


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

약 4년 전

해결됨


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

약 4년 전

해결됨


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

약 4년 전

해결됨


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

약 4년 전

해결됨


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

약 4년 전

해결됨


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

약 4년 전

해결됨


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

약 4년 전

해결됨


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

약 4년 전

해결됨


Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...

약 4년 전

해결됨


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

약 4년 전