![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/7295498_1522120900786_DEF.jpg)
Gabor Bekes
Followers: 0 Following: 0
Feeds
已回答
Unnest cell array with nested cells to a cell array
You might want something along the lines of: a2 = {{'asdf',{'asdf','asdf',{'asdf'},{'asdf'},{'asdf',{'asdf'}},'asdf'},{'asdf',{...
Unnest cell array with nested cells to a cell array
You might want something along the lines of: a2 = {{'asdf',{'asdf','asdf',{'asdf'},{'asdf'},{'asdf',{'asdf'}},'asdf'},{'asdf',{...
5 years 前 | 1
提问
Indexing custom Python objects
Hello, I want to be able to use indexable Python objects via MATLAB's Python interface. The context is, I need to process .odb ...
5 years 前 | 0 个回答 | 0
0
个回答提问
AVX & SSE options not available for Coder/Code replacement library
Hello, according to <https://de.mathworks.com/videos/coder-summit-2018-simd-code-generation-1522058070054.html this video>, i...
6 years 前 | 1 个回答 | 0
1
个回答已回答
Removing grid/edge lines in pcolor() figure
arrayfun(@(s) set(s,'EdgeColor','none'), findobj(gcf,'type','surface')) If you have multiple pcolor plots in subplots. I al...
Removing grid/edge lines in pcolor() figure
arrayfun(@(s) set(s,'EdgeColor','none'), findobj(gcf,'type','surface')) If you have multiple pcolor plots in subplots. I al...
7 years 前 | 0
已解决
Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
7 years 前
已解决
Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
7 years 前
已解决
Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...
7 years 前
已解决
Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....
7 years 前
已解决
Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
7 years 前
已解决
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
7 years 前
已解决
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
7 years 前
已解决
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
7 years 前
已解决
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
7 years 前
已解决
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
7 years 前
已解决
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
7 years 前
已回答
How can I determine the angle between two vectors in MATLAB?
This does the same thing, also capable of determining the angle of higher (than one) dimensional subspaces. subspace(vector...
How can I determine the angle between two vectors in MATLAB?
This does the same thing, also capable of determining the angle of higher (than one) dimensional subspaces. subspace(vector...
8 years 前 | 2
提问
zscore() kills vrrotvec()?
Try the following: create an n x 3 matrix with randn(). Apply some oblique rotation to each of its rows. a1 = randn(100,3);...
8 years 前 | 0 个回答 | 0
0
个回答已解决
The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
8 years 前
已解决
Multielement indexing of a row array
The row array birthRateChina stores the China birth rate (per 1000 people) for years 2000 to 2012. Write a statement that create...
8 years 前
已解决
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
8 years 前
已解决
Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...
8 years 前
已解决
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
8 years 前
已解决
Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...
8 years 前
已解决
Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...
8 years 前
已解决
Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...
8 years 前
已解决
Relational operators: Guessing game
Row array userGuess contains a sequence of user guesses. Create a logical indexing array correctGuess with true in each location...
8 years 前
已解决
Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...
8 years 前
已解决
Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12
8 years 前
已解决
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...
8 years 前
已解决
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
8 years 前