photo

Agnish Dutta


Actif depuis 2019

Followers: 0   Following: 0

Statistiques

All
  • 3 Month Streak
  • Commenter
  • Knowledgeable Level 2
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

A résolu


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

plus de 5 ans il y a

A résolu


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

plus de 5 ans il y a

A résolu


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

plus de 5 ans il y a

A résolu


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

plus de 5 ans il y a

A résolu


Make a Palindrome Number
Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

plus de 5 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 5 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 5 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 5 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 5 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 5 ans il y a

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 5 ans il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

plus de 5 ans il y a

A résolu


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

plus de 5 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

plus de 5 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 5 ans il y a

A résolu


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

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

plus de 5 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 5 ans il y a

Réponse apportée
I have a signal with centre at 0.5Khz, how can i shift the signal such that the maximum component occurs at the center of the frequency axis?
I have assumed that the signal has only 1 peak. In case of multiple peaks, the "find(P == max(P), 1)" command will return an arr...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Solving for unknown angles
This seems like an ODE. Here's the documentation detailing how to solve ODE's using MATLAB: https://www.mathworks.com/help/symb...

plus de 5 ans il y a | 0

Réponse apportée
Plotting Multiple Graphs in a 3D form
The dimensions of the 5 different plots must be the same for the following to work. So make sure you pre-process your data accor...

plus de 5 ans il y a | 0

Réponse apportée
2D random walk double for loop
I used the following method to generate the x and y coordinates od 2000 points moving randomly in 2D cartesian space. I was then...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Plotting the solution to the Laplace equation
I suggest using the symbolic mathematics toolbox which provides functions for solving, plotting, and manipulating symbolic math ...

plus de 5 ans il y a | 1

Réponse apportée
How to create a line profile from a figure within a script
Consider going through the following MATLAB answers page: https://www.mathworks.com/matlabcentral/answers/389889-how-to-plot-in...

plus de 5 ans il y a | 0

Réponse apportée
3D (Surface) Reconstruction of Stereo Image
Use these instructions as a starting point for what you are trying to accomplish: The following shows the workflow for creati...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can i make GUI pushback button call my App created in app designer?
I recommend using MATLAB appdesigner to create GUIs with interactivity. The first thing to do would be to include the target...

plus de 5 ans il y a | 0

Réponse apportée
How can transfer python result to Matlab matrix
You need to save this array in a format that MATLAB understands. You could use scipy.io to do this. As an example: import nu...

plus de 5 ans il y a | 0

Charger plus