Hello everyone, My question is: can I create a matrix of which entries are the square roots of the sum of its x and y position coordinates ( column number and row number respectively ) squared ? For example, for 3×3 matrix, it would look like: X = [ sqrt(2) sqrt(5) sqrt(10) ; sqrt(5) sqrt(8) … ]. Is there a way of getting it in an automated way ? Thank you.
MATLAB: How to make the entries of a matrix be a square root of the sum of their column number squared and row number squared
MATLAB and Simulink Student Suitematrix computations
Related Question
- Minimum output matrix from data
- Short programs to subtracts rows from a matrix of n length
- How is the correct way to calculate distance of each data points between two vectors
- Euclidean distance explanation for a matrix
- Distance between one point and the next of a list of points
- How to multiply cell matrix to obtain euclidean distance
- Calculating distances between coordinates from a matrix
- How does pdist2 work
Best Answer