Community Profile

photo

meihua


Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer

View badges

Feeds

View by

Answered
Bar plot with multidimensional matrix-->columns of different color
[n,x]=hist(Collectb,5); for a=1:8 mn(:,a)=n(:,a)/sum(n(:,a)); end bar(x,mn,'hist'); Fixed it.

10 years ago | 0

Answered
How to find local maxima in plot(X,Y)?
I've found this peakdet.m script to be useful: http://www.billauer.co.il/peakdet.html

10 years ago | 2

| accepted

Question


Bar plot with multidimensional matrix-->columns of different color
trial_type={'apples' 'oranges' 'banana' 'pears'}; for choice=1:4 trial_type_current = trial_type{1,choice}; ...

10 years ago | 1 answer | 0

1

answer

Question


Stretch peak to peak y-values to plot
figure(1) x =[0 pi/2 pi 3*pi/2 2*pi 5*pi/2 3*pi]; y = [0 1 0 -1 0 1 0]; bcs = csapi(x,y); xx=linspace(0,3*pi,1000)...

10 years ago | 0 answers | 0

0

answers

Question


Smoothing piecewise sin functions
I wrote a function that pieces together two different sine functions. The positive curves are always sin(x) but the negative cur...

10 years ago | 2 answers | 0

2

answers

Answered
I am trying to calculate mean of all the columns in my matrix. Help me please?
>> a=[1 2 3; 1 2 3] a = 1 2 3 1 2 3 >> mean(a,1) ans = 1 ...

10 years ago | 0

| accepted

Question


Series of subplots that are continuous through multiple figures
nrows = 8; ncols = 5; currentPlot = 1; for i = 1:size(input,1) subplot(nrows, ncols, currentPlot);...

10 years ago | 1 answer | 0

1

answer