Community Profile

photo

Saurav Roy


National Brain Research Center

Last seen: 2 years ago Active since 2019

Followers: 0   Following: 0

Designation : Research and Development Engineer

Statistics

All
  • Thankful Level 2
  • Knowledgeable Level 1
  • First Answer
  • Solver
  • Thankful Level 1

View badges

Feeds

View by

Question


Take user inputs via a for loop and then apply 'CrossTab'
Hello everyone, I want a chi-square statistics value hence I want to user the function crosstab using n number of variables. Al...

3 years ago | 0 answers | 0

0

answers

Solved


Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

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

4 years ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

4 years ago

Solved


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

4 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

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

4 years ago

Solved


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 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

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

4 years ago

Solved


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

4 years ago

Solved


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

4 years ago

Solved


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

4 years ago

Answered
Put excel collumns in an array
Hey ! I hope this is what you are looking for.... % Read Excel Sheet [~,~,data] = xlsread('Add path to the excel file (.xlsx...

4 years ago | 0

| accepted

Answered
How to modify array in modifying subarray reference ?
Hi.... I am not sure I understood your question properly but I wrote something as per my initial understanding to get your resu...

4 years ago | 1

Answered
Create for loop to simplify code and output arrays
Hey ! I think this is somwhat close to what you are looking for, num = length(a); len = a(4);st = 5; y = a(st: st+num-1); ...

4 years ago | 0

Answered
How to calculate the average between each two adjacent members(rows or columns)?
Hey, Try this for the Row and adjust accordingly for the columns. arr = [1 2 3 4 5]; len = length(arr); arr_secondary = []...

4 years ago | 1

Question


Add a variable in eventdata
I need to add a variable that is user defined into 'eventdata' that is being generated using a GUI that I have made. Example: ...

4 years ago | 1 answer | 0

1

answer

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

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

4 years ago

Solved


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

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

4 years ago

Question


How can I calculate Conditional Logistics of a given Data ?
Hey Everyone !!! I have two datasets as follows: X = [ 57.5 54.7 52 50 48.6 48 49.4 50.4]; % Continuous Data Y = [ 1 0 ...

5 years ago | 0 answers | 0

0

answers