已解决


How many Fibonacci numbers?
Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...

5 years 前

已解决


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

5 years 前

已解决


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

5 years 前

已解决


Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已回答
Error with xlswrite (error 0x800A03EC)
Try xlsprotect from File Exchange. https://www.mathworks.com/matlabcentral/fileexchange/6046-xlsprotect It has worked well for...

5 years 前 | 0

已回答
2019b installation problem
I had this same problem with 2018b and now again with 2019b. Last year, Matlab Support solved it with the following solution: ...

5 years 前 | 21

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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.

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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.

5 years 前

已回答
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...

5 years 前 | 1

| 已接受

提问


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

5 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

5 years 前 | 0

提问


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 years 前 | 3 个回答 | 0

3

个回答

提问


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 years 前 | 0 个回答 | 0

0

个回答

提问


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

6 years 前 | 1 个回答 | 0

1

个回答

已回答
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 ...

9 years 前 | 0

| 已接受

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

已回答
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 years 前 | 1

加载更多