Community Profile

photo

SRT HellKitty


Actif depuis 2018

Followers: 0   Following: 0

Statistiques

All
  • First Review
  • Knowledgeable Level 1
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

environ 6 ans il y a

A répondu
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...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 0

| A accepté

A répondu
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...

environ 6 ans il y a | 0

A répondu
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 =...

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 0

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

plus de 6 ans il y a

A résolu


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A répondu
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...

plus de 6 ans il y a | 0

A répondu
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 ...

plus de 6 ans il y a | 0

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

Charger plus