Mark Wagshul
Albert Einstein College of Medicine
Followers: 0 Following: 0
統計
All
Feeds
質問
How do I convert an array into a set of indices using colon notation?
I have two 4D matrices. Each is approximately 150 x 150 x 150 x 3 (the "3" is exact in both matrices). The 4th dimension in Ma...
9年弱 前 | 1 件の回答 | 1
1
回答質問
What is the most efficient way to fill a 4D array?
I would like to fill a 4D array as follows, give a 4D array shift1: newShift(j,k,l,1:3) = constant + [j k l] + shift1(j,k,l...
9年弱 前 | 2 件の回答 | 0
2
回答解決済み
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...
約13年 前
解決済み
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
約13年 前
解決済み
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...
13年以上 前
解決済み
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 ...
13年以上 前
解決済み
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
13年以上 前
解決済み
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
13年以上 前
解決済み
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...
13年以上 前
解決済み
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
13年以上 前
解決済み
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
13年以上 前
解決済み
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 ...
13年以上 前
解決済み
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 ...
13年以上 前
解決済み
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...
13年以上 前
解決済み
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 ...
13年以上 前
解決済み
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:...
13年以上 前
解決済み
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...
13年以上 前
回答済み
Real time pixel position in a GUI
Thanks, but that will only display the pixel position and image value in the window (bottom of the figure). I need to have acce...
Real time pixel position in a GUI
Thanks, but that will only display the pixel position and image value in the window (bottom of the figure). I need to have acce...
13年以上 前 | 0
質問
Real time pixel position in a GUI
I have a series of images which change as a function of time (i.e. a 3D matrix, two spatial, one time). I would like to display...
13年以上 前 | 3 件の回答 | 1

