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

Solved


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

9 years ago

Solved


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

9 years 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 years 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 years 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 years 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 years ago

Solved


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

9 years ago

Answered
Matlab Crash: Results in System error
You should refer to the third last paragraph i.e. contact Mathworks technical support. They are always best placed to deal with ...

9 years ago | 0

Answered
Matlab Deployment -- delete additional setting files
You can't. There is absolutely no way that the uninstall wizard can know what magic you have done inside your program and what f...

9 years ago | 0

Answered
we want to create a logic gate simulator using gui
You could use Simulink as it has everything you need; logic, switches and gauges. It would take about 10 seconds to produce that...

9 years ago | 0

Answered
Release a toolbox license when it has been used in a GUI
No I do not think this is possible. The license would only be returned either when the user closes down MATLAB or after a certai...

9 years ago | 0

Answered
Importing JAVA class to Matlab - Error
This is probably a Java version mismatch. It sounds like you might have compiled using a newer version of Java (possibly JDK 1.8...

9 years ago | 0

Answered
I want to only fft last half of data from simulink
The (end/2:end) indexing syntax will fail if you have an odd number of elements in your array. You would need to handle this cas...

9 years ago | 0

Answered
How do I keep the menu tabs from disappearing?
It's possible to minimise the toolstrip which I guess is what you might be referring to here. Check the first item on the link b...

9 years ago | 1

| accepted

Answered
A problem about Gui
This is a known bug with deployed applications in 15b. Take a look at the bug report linked below for possible workarounds. I've...

9 years ago | 0

| accepted

Answered
GUI: function to change pushbutton color on mouseover
You should take a look at the WindowButtonMotionFcn callback property on the Figure. You could use this to define your own custo...

9 years ago | 0

Answered
Has anyone found a way to enable/disable tabs in App Designer?
I don't believe that you can yet enable/disable tabs in MATLAB and this is something I have requested from them. Using findjobj ...

9 years ago | 0

| accepted

Answered
Changing the appearance of buttons in GUIDE
You can set the CData property of the uicontrol to display an image. See <https://uk.mathworks.com/matlabcentral/answers/98593-h...

9 years ago | 0

Answered
How can I plot using a string in MATLAB?
function plotting_fcn(bool1, bool2, bool3) x1 = [1,2,3,4,5]; y1 = [10,20,30,40,50]; y2 = [20,30,40,50,60]...

11 years ago | 0

Solved


Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

11 years ago

Solved


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

11 years ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

11 years ago

Solved


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

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

11 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

11 years ago

Solved


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.

11 years ago

Solved


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

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

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

11 years ago

Load more