Solved

Fill a zeros matrix

The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

약 10시간 ago

Solved

Generate N equally spaced intervals between -L and L

Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...

약 11시간 ago

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

약 11시간 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...

약 11시간 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.

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

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

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

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

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

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

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

약 1달 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...

약 1달 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...

약 2달 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 ...

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

7달 ago | 0 answers | 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 ...

3년 이상 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년 이상 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 ...

약 4년 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 ...

4년 이상 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...

4년 이상 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년 이상 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...

4년 이상 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년 이상 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';

4년 이상 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년 이상 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...

4년 이상 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...

4년 이상 ago