Saurav Roy
National Brain Research Center
Followers: 0 Following: 0
Designation : Research and Development Engineer
Feeds
질문
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...
대략 4년 전 | 답변 수: 0 | 0
0
답변문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
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]; ...
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
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년 초과 전
답변 있음
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...
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년 초과 전 | 0
| 수락됨
답변 있음
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...
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년 초과 전 | 1
답변 있음
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); ...
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년 초과 전 | 0
답변 있음
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 = []...
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년 초과 전 | 1
질문
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년 초과 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
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년 전
문제를 풀었습니다
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년 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
대략 5년 전
문제를 풀었습니다
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년 전
질문
I have a 3D MRI image with me and I want to plot a histogram of it's value. Can someone please suggest a way to plot the same ?
거의 6년 전 | 답변 수: 1 | 0
1
답변질문
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 ...
거의 6년 전 | 답변 수: 0 | 0