Community Profile

Contact

Top 1% contributor

How can I randomise the elements only in the upper triangle of a square matrix? I want to randomise only the upper triangle elem...

3 Answers

0

Asked 7 months ago

For example, I have the following matrix calculation: for j = 1: 1000000 O(i,i,j) = M(i,i).* N(i,i).* J(i,i); en...

Asked 1 year ago

The original data are arranged A B C D... B D E F... D C R G.. . . . It's read A chooses B, C and D as friends, B chooses D, ...

1945 views

Posted 2 years ago

It's probably an easy question for signal analysis but any suggestion is greatly helpful for newbie. I want to filter a signal u...

1815 views

Posted 3 years ago

Dear experts, I want to get the slope for each point from the curve defined below: x = 1194:1206; y =[114,115,117,118,11...

2 Answers

Asked 6 months ago

Hi,experts I have a raw matrix as: a = [125 97 126 104 97 125 104 126]; I'm looking fo...

Asked 2 years ago

Hi, I have a cell matrix imported from excel: [39] [1232] [ 567] [ NaN] [40] [ 48] ...

hi all, I have a strange problem on my newly installed matlab 2012a. I want to save a matlab fig to .ai format, so I click "save...

Asked 3 years ago

Hi all, I'm trying to do spectral analysis by pmtm method: clear clc; close all % artificial data Fs = 300; ...

Suppose a matrix 1 2 3 4 5 6 3 4 5 7 4 3 row 2, 4, 6 are redundant, so how can I just leave either of the...

1 Answers

Assume that I want to compare brain states A (e.g., wake) and B (e.g. sleep). To do that, I first allocated 10,000 brain sites (...

I fixed the display figure size on screen by using set(gcf,'Position',[200,200,1000,1000]) Then I used imwrite to cre...

Hi all, I know that two sine waves with different frequencies superimposed to create beating patterns, but how to detect the fre...

Hi all, I've read lots of documents about KLT, but still get confused on how to correctly apply it to a data set. My references...

for example i have a data set x = [0.1 0.2 0.2 0.3 0.2] in a pie plot (5 slices), I want to pull out the 1st, 2nd, 4th and ...

Asked 4 months ago

Dear experts, I am looking for suggestions for the problem below. For each point at a curve, the tangent of this point is def...

I'm working on the mammogram and trying to locate the nipple locations. Sometimes nipple is quite small, it may be in the breast...

Hi, I create a adjacency matrix, in the form: <http://yed.yworks.com/wp-content/uploads/2011/08/format_adjacencymatrix1.png> ...

Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

Solve this!

1 year ago

Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

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

Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

Load more