Solved


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

2 months ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

2 months ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

2 months ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

2 months ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

2 months ago

Solved


Return area of square
Side of square=input=a Area=output=b

2 months ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

2 months ago

Answered
impoly no longer animates the tracing line after placing other animated line objects
JK from the Matlab Support Team provided a solution. Before the origButtonMotionCB definition above, he suggested adding the fo...

3 months ago | 1

| accepted

Question


impoly no longer animates the tracing line after placing other animated line objects
Our users need to trace around a region on an image using impoly (closed = 0). In some cases they would like to start at a poin...

3 months ago | 1 answer | 0

1

answer

Answered
Trouble with impoly (open) misinterpreting mouse click
The users are running a compiled version of the application with Matlab runtime. I do not get the error on my development compu...

4 months ago | 0

Question


Trouble with impoly (open) misinterpreting mouse click
Our users need to find the area under a curve. We use impoly (open), and they trace the curve on an image. However they are ha...

4 months ago | 3 answers | 0

3

answers

Question


GUI (GUIDE) with images leaking memory
Matlab 2018b with GUIDE running on Win 7. I am programming a GUI that displays small image "thumbnails" from a directory in an ...

8 months ago | 0 answers | 0

0

answers

Question


How do I use WinOnTop for GUIs?
I have a main GUI with an axes object on which I display an image. Occasionally, the users need to calibrate distances on the i...

9 months ago | 1 answer | 0

1

answer

Answered
Radio button option group adding space to end of string property
Thank you for the quick reply, Walter. I will consider your cell-array tip in the future for a more robust GUI. Just before ...

3 years ago | 0

| accepted

Question


Radio button option group adding space to end of string property
When I use findobj to search for a radio button in an option group based on each button's String property, I keep getting empty ...

3 years ago | 2 answers | 0

2

answers

Question


Axes auto-zoom based on a given line
In an application, I plot one series of data and a number of vertical lines showing where certain "events" occur along the data ...

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 1

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

4 years ago | 0

Question


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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 0

Question


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

4 years ago | 0 answers | 1

0

answers

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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!

5 years ago

Load more