Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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]

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

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

9 mesi ago

Solved

Weighted average

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

9 mesi ago

Solved

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

9 mesi ago

Answered

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

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

9 mesi ago | 0

| accepted

Answered

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

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

9 mesi ago | 0

Answered

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

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

9 mesi ago | 0

Answered

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

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

9 mesi ago | 0

| accepted

Answered

Plotting the solution to the Laplace equation

I suggest using the symbolic mathematics toolbox which provides functions for solving, plotting, and manipulating symbolic math ...

Plotting the solution to the Laplace equation

I suggest using the symbolic mathematics toolbox which provides functions for solving, plotting, and manipulating symbolic math ...

9 mesi ago | 0

Answered

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

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

9 mesi ago | 0

Answered

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

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

9 mesi ago | 0

| accepted

Answered

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

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

10 mesi ago | 0

Answered

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

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

10 mesi ago | 0