답변 있음
How to replace variable names in a mat file
Adam's answer is the correct algorithm. Additions: Use the fieldnames command to get a cell array of field names from the ...

10년 초과 전 | 1

답변 있음
how to get the data from edit box of GUI and use in other .m file
To supplement the above answer: Add str2num if it is a value, so you get the correct datatype. myVar = str2num(get(han...

10년 초과 전 | 0

질문


GUI: Text note scrolls outside axes limits
I have a an axes object within a GUI that displays digital on/off data. I have added a text note to each rising edge showing it...

10년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
How can I execute a double-click callback without executing the single-click callback in my MATLAB GUI?
I am disappointed that GUI's do not (apparently) support the double-click option in SelectionType. Why is there no disclaimer i...

거의 11년 전 | 0

질문


GUI: Get previous listbox value before change
In VBA, there is an object-action called BeforeUpdate, where you can run code before a value is permanently changed. For exampl...

거의 11년 전 | 답변 수: 0 | 1

0

답변

문제를 풀었습니다


Find the palindrome
Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

거의 11년 전

문제를 풀었습니다


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

거의 11년 전

문제를 풀었습니다


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

거의 11년 전

문제를 풀었습니다


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

대략 11년 전

문제를 풀었습니다


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

대략 11년 전

문제를 풀었습니다


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

대략 11년 전

문제를 풀었습니다


Find max
Find the maximum value of a given vector or matrix.

대략 11년 전

문제를 풀었습니다


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

대략 11년 전

문제를 풀었습니다


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

대략 11년 전

문제를 풀었습니다


Choose the best fitting dominoes
You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be plac...

대략 11년 전

문제를 풀었습니다


Rotate and display numbered tile
Imagine a square tile with four numbers on it, one on each edge. We will call these edges north, east, south, and west. If th...

대략 11년 전

문제를 풀었습니다


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

11년 초과 전

문제를 풀었습니다


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

11년 초과 전

문제를 풀었습니다


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

11년 초과 전

문제를 풀었습니다


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

11년 초과 전

문제를 풀었습니다


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

11년 초과 전

문제를 풀었습니다


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

11년 초과 전

문제를 풀었습니다


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

11년 초과 전

문제를 풀었습니다


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

11년 초과 전

질문


GUI option to return no output
I am programming a GUI that waits (uiwait) for the user to select some points on an axes object. I have one pushbutton ("Accept...

11년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Find best domino orientation
Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...

11년 초과 전

더 보기