photo

Paridhi Yadav


IIT Indore

Last seen: plus de 4 ans il y a Actif depuis 2018

Followers: 0   Following: 0

Statistiques

All
  • Knowledgeable Level 2
  • First Answer
  • Promoter
  • Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
Opening a .mat file
load name_of_file.mat

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

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

plus de 6 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 6 ans il y a

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


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

Réponse apportée
How can I delete my Mathworks ID?
You should contact MathWorks Support for that http://www.mathworks.com/support/contact_us/index.html

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

Réponse apportée
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);

plus de 6 ans il y a | 0

Réponse apportée
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)))

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

A résolu


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

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

plus de 6 ans il y a

Réponse apportée
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...

plus de 6 ans il y a | 0

A résolu


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

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


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


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


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.

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


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ésolu


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

plus de 6 ans il y a

Réponse apportée
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...

plus de 6 ans il y a | 0

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

Réponse apportée
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...

plus de 6 ans il y a | 0

Charger plus