Question

Mouseover highlighting of plotted line?

The 'parallelplot' function has a very handy mouseover function that highlights the proximate line in the plot and displays its ...

1 month ago | 1 answer | 0

Question

Ginput pointer obscured in Online MATLAB

Hi All When running 'ginput' on Online MATLAB, the pointer is obscured by a black square, covering the pixel you would be aimin...

9 months ago | 0 answers | 0

Answered

App Designer-Tag in event is empty; Value of Listbox is not order

For first question: Pre-assign a descriptive Tag to each your objects (in a startupFcn) with the following code: ...

App Designer-Tag in event is empty; Value of Listbox is not order

For first question: Pre-assign a descriptive Tag to each your objects (in a startupFcn) with the following code: ...

12 months ago | 0

Question

App Designer ListBox and DropDown selection number

Hi All I'm a GUIDE user but am now doing my first major GUI with App Designer (in 2017b), due to a nudge from Mathworks. ...

12 months ago | 1 answer | 0

Question

Listbox multi selection without using Ctrl?

Hi All I have a GUIDE listbox in which I select and deselect multiple options regularly. Listbox entry selection unfortunate...

1 year ago | 2 answers | 0

Solved

Specific Element Count

Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

2 years ago

Solved

Replicate elements in vectors

Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

2 years ago

Solved

Return elements unique to either input

Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

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

2 years ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

2 years ago

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

2 years ago

Solved

The 5th Root

Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

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

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

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

2 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

2 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

2 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

2 years ago

Solved

First non-zero element in each column

For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

2 years ago

Solved

Getting logical indexes

This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

2 years ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

2 years ago

Question

Logical statement with variable gates and true/false vectors without using EVAL

Hi All! Thank-you for help in advance. I have a long logical statement of a dozen true/false vectors with eleven logical gate...

2 years ago | 2 answers | 0

Question

Displaying 2D cell arrays in GUIDE Edit Text box

Hi All Have been browsing and I don't see an answer - should be a simple (I think) I want to display my 2D cell array in m...

2 years ago | 2 answers | 0

Question

Setting focus to background figure or invisible figure

Hi All I have a guide-GUI that generates figures (of the same size and screen position) that need to be compared sometimes, f...

2 years ago | 1 answer | 0