SRT HellKitty
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
已解决
Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...
7 years 前
已解决
Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...
7 years 前
已解决
Weighted average
Compute the weighted average Y, of the vector A, given the weight vector W. The weighted average is the sum of the dot produc...
7 years 前
已解决
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
7 years 前
已回答
Plot sigma value to linear curve
To get a vertical line you use the a simple 2 element vector where x does not change(to make a horizontal line simply make the y...
Plot sigma value to linear curve
To get a vertical line you use the a simple 2 element vector where x does not change(to make a horizontal line simply make the y...
7 years 前 | 0
已回答
How can i change the colure of points in a scatter graph depedning on another function?
I believe there are 2 things that are incorrect in this. The first is that scatter() has variable inputs that are set to spe...
How can i change the colure of points in a scatter graph depedning on another function?
I believe there are 2 things that are incorrect in this. The first is that scatter() has variable inputs that are set to spe...
7 years 前 | 0
已回答
Importing data: recognizing if a variable is present
You can read about the <https://www.mathworks.com/help/matlab/ref/exist.html Exist Command here.> For your example, you can d...
Importing data: recognizing if a variable is present
You can read about the <https://www.mathworks.com/help/matlab/ref/exist.html Exist Command here.> For your example, you can d...
7 years 前 | 0
| 已接受
已回答
Getting Error in Matlab GUIDE
I'm not sure this will fix the error you are encountering, but when you set a textbox you need to use this context; set(ha...
Getting Error in Matlab GUIDE
I'm not sure this will fix the error you are encountering, but when you set a textbox you need to use this context; set(ha...
7 years 前 | 0
已回答
creating a matrix by a vector in the following condition
If each column is always going to be the same length and 'v' is always going to be 1-5 repeated this should work. matrix =...
creating a matrix by a vector in the following condition
If each column is always going to be the same length and 'v' is always going to be 1-5 repeated this should work. matrix =...
7 years 前 | 0
已回答
How can I remove the background noise and keep only the cell (white object) in an image such as this ??
You can take a look at this code in File Exchange that <https://www.mathworks.com/matlabcentral/fileexchange/4732-ascii-text-ima...
How can I remove the background noise and keep only the cell (white object) in an image such as this ??
You can take a look at this code in File Exchange that <https://www.mathworks.com/matlabcentral/fileexchange/4732-ascii-text-ima...
7 years 前 | 0
已解决
Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...
7 years 前
已解决
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
7 years 前
已解决
Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...
7 years 前
已解决
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
7 years 前
已解决
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
7 years 前
已解决
Energy of a photon
*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...
7 years 前
已解决
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...
7 years 前
已解决
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...
7 years 前
已解决
Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...
7 years 前
已解决
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
7 years 前
已解决
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...
7 years 前
已回答
How can I match a value on a matlab plot?
Say you have data with peaks for the Y-Axis and linear data for the X-Axis Y = [1:5,1:5,1:5]; X = [1:15]; Now you hav...
How can I match a value on a matlab plot?
Say you have data with peaks for the Y-Axis and linear data for the X-Axis Y = [1:5,1:5,1:5]; X = [1:15]; Now you hav...
7 years 前 | 0
已回答
Variable importing into code
<https://www.mathworks.com/matlabcentral/answers/96201-how-do-i-access-a-base-workspace-variable-from-within-a-function I think ...
Variable importing into code
<https://www.mathworks.com/matlabcentral/answers/96201-how-do-i-access-a-base-workspace-variable-from-within-a-function I think ...
7 years 前 | 0
已解决
Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...
7 years 前
已解决
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
7 years 前
已解决
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
7 years 前
已解决
Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...
7 years 前
已解决
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. Examp...
7 years 前
已解决
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
7 years 前
已解决
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...
7 years 前