Solved

intersection of matrices

Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...

3 Monate ago

Solved

We love vectorized solutions. Problem 1 : remove the row average.

Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

3 Monate ago

Solved

Magic is simple (for beginners)

Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

3 Monate ago

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

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

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

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

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

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

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

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

4 Monate ago | 1 answer | 0

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

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

5 Monate ago | 3 answers | 0

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

9 Monate ago | 0 answers | 0

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

10 Monate ago | 1 answer | 0

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

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

mehr als 3 Jahre 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 ...

mehr als 3 Jahre ago | 2 answers | 0

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

mehr als 4 Jahre ago | 1 answer | 0

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

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

mehr als 4 Jahre 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...

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

mehr als 4 Jahre 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...

mehr als 4 Jahre ago | 1 answer | 0

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

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

mehr als 4 Jahre 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...

mehr als 4 Jahre ago | 0 answers | 1

Solved

Find the palindrome

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

fast 5 Jahre 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 ...

fast 5 Jahre 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...

fast 5 Jahre 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...

fast 5 Jahre 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 ...

fast 5 Jahre 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...

fast 5 Jahre ago