Statistics
RANK
14,607
of 292,693
REPUTATION
2
CONTRIBUTIONS
2 Questions
8 Answers
ANSWER ACCEPTANCE
50.0%
VOTES RECEIVED
1
RANK
17,887 of 19,933
REPUTATION
1
AVERAGE RATING
0.00
CONTRIBUTIONS
3 Files
DOWNLOADS
6
ALL TIME DOWNLOADS
19
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Solved
Accurate Division
Given three integers x, y and d, return x/y (as a string) to d significant digits. Remove leading and trailing zeros. Example...
1 month ago
Solved
Let's get back to school, and create multiplication tables
For a given range, create multiplication tables. (start is always < endno) Example start = 17 endno = 19 Then, ...
1 month ago
Solved
Multiplication
Multiply two numbers in a different manner. The numbers are given to you as vectors x and y. Example x = [ 1 2 0 1 ] ...
1 month ago
Solved
Subtract integers and add doubles
Create a function that subtracts a from b if a and b are integers and adds them if they are floats.
1 month ago
Solved
Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...
1 month ago
Solved
modular arithmetic
Given three integers a,b and c, find the remainder when a^b is divided by c. Here, a^b will be well beyond the largest 64 bit in...
1 month ago
Solved
Mmm! Multi-dimensional Matrix Multiplication
You have got a couple of multi-dimensional matrices, A and B. And want to multiply them. For the first 2 dimensions, an ordinary...
1 month ago
Solved
Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...
2 months ago
Solved
Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 ...
2 months ago
Solved
Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...
2 months ago
Solved
Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime numb...
2 months ago
Solved
Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
2 months ago
Solved
Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...
2 months ago
Solved
Project Euler: Problem 4, Palindromic numbers
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...
2 months ago
Solved
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
2 months ago
Solved
Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...
2 months ago
Replace the indexes of duplicate values
Try this: [~,ixu,ixb] = unique(B(:,2:3),'rows'); % indices of unique rows for columns 2 and 3 ixd = setdiff(1:size(B,1), ixu...
2 months ago | 0
Finding Indices of Duplicate Values
If I understand correctly, you want the row indices where the pair a{1)}(3,4) are duplicated. a{1}=[ 2 2 1 3 5 2 1 1 ...
2 months ago | 0
Submitted
A custom modal dialog as an AppDesigner App
This is sample code for a custom, modal AppDesigner dialog. R2020b onwards
2 months ago | 1 download |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/04dd246b-6539-4db5-9da0-b27e59377796/4090b867-e4ff-42b6-867d-68b94978bd75/images/1715262109.png)
Submitted
PickPointNonblocking - pick points in axes without blocking
The PickPointNonblocking class allows the user to pick points from an axes without blocking the GUI with uiwait()
4 months ago | 2 downloads |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/9d7dd381-50fc-4e93-9fa2-22c20914b9ce/b6089441-9627-42ea-b129-d19461e2ec8d/images/1710444074.png)
Is there a generic modal dialog for appdesigner that can be customized?
Since R2020b we can make a custom AppDesigner modal dialog by using these features: app.UIFigure.WindowStyle = 'modal' uiwait(...
5 months ago | 0
How to handle listener lifetime in MATLAB apps?
Answering my own question. I have not tried MagicListener for this, but it looks useful. Instead, my client app saves a lis...
8 months ago | 0
How can I edit an appdesigner's destructor
Given that the CloseRequest() function is is not called when an app is delete()-ed, I believe the most reliable solution is to l...
8 months ago | 0
Question
How to handle listener lifetime in MATLAB apps?
This simple two-window app has a data source app which passes data via an event to one or more listeners. The source is wavefo...
8 months ago | 1 answer | 0
1
answermustBeMember validation problem failure
Self answer. The char array is being forced into a column vector not the intended row vector. We want the size to be constrain...
9 months ago | 0
| accepted
Question
mustBeMember validation problem failure
This class fails property validation on construction classdef validationTester properties coupling (1,:) char {mu...
9 months ago | 1 answer | 0
1
answerHow do I convert a numerical vector into a comma-delimited string?
We can also use compose() for a formatted one-liner: a = rand(5,1); csva = strjoin(compose('%.3f', a), ', ') and also for 2D...
12 months ago | 0
Submitted
mergeStructures(): merge or concatenate nested structures
merge nested structures, recursively
1 year ago | 3 downloads |
Solved
Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...
1 year ago
Solved
Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....
1 year ago