Paridhi Yadav
IIT Indore
Followers: 0 Following: 0
Statistica
RANK
2.890
of 295.569
REPUTAZIONE
20
CONTRIBUTI
0 Domande
11 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
4
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
i am trying to write a function to find the second max number
In your function you can write res = sort(v) SeMax = res(end-1) It will give you the last second value after sorting...
oltre 6 anni fa | 1
Risolto
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
Risolto
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
oltre 6 anni fa
Risolto
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
oltre 6 anni fa
How can I delete my Mathworks ID?
You should contact MathWorks Support for that http://www.mathworks.com/support/contact_us/index.html
oltre 6 anni fa | 1
Add rows of a vector in a for loop
Hey, so you can first declare a large matrix of (8*cornerpoints*2) x 2 and declare a variable k and then every time inside the l...
oltre 6 anni fa | 1
| accettato
Risolto
Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
oltre 6 anni fa
Risolto
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
oltre 6 anni fa
how can wirte this integration in matlab.
fun = @(q) q^4/(2*pi*(k^3)*((q + qs)^2)*sqrt(1-(q/2*k)^2)); jdp(k) = integral(fun,0,2*k);
oltre 6 anni fa | 0
please give me mat-lab code for these following expression
f_u2 = 0.5*(G/hg*(sqrt(b + (4*hg*l*f_ul/G)) - (G*b/hg + 2*f_ul)))
oltre 6 anni fa | 1
| accettato
3D plot of a matrix
You can do it like this, since you have not given position I have assumed (1, 2, 3, 4) to be the position. A = [ 200 30...
oltre 6 anni fa | 0
Loop and element-by-element operation on table
Hey, you have first loaded the values from text file in h, t and rho and then you have assigned them the value 1,2,3...20 so the...
oltre 6 anni fa | 0
| accettato
Risolto
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
How to make this plot
Hey, you can extract the data of P in two different vectors, one with all true(1) value and one with false(0) and plot both of t...
oltre 6 anni fa | 0
Risolto
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
Risolto
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
Risolto
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...
oltre 6 anni fa
Risolto
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
oltre 6 anni fa
Questions about the elapsed time of Enumeration
Hey in your code you are adding a row in weight every time the loop runs, instead of this while initializing weight give total n...
oltre 6 anni fa | 0
Risolto
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...
oltre 6 anni fa
License Manager Error -97 の解決方法
Hey the question is already answered, check out the answer by Mathworks Support Team on this link - <https://www.mathworks.c...
oltre 6 anni fa | 0