Rank: 29177 based on 0 downloads (last 30 days) and 0 file submitted
photo

Pegah Hosseini

E-mail
Company/University
University of Southampton

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Pegah Hosseini View all
Updated File Comments Rating
11 Jun 2014 Repeated Measures ANOVA Single factor repeated measures ANOVA for one or more samples. Author: Arash Salarian

Well, I couldn't find that specific website but here is another one. Please let me know if you found any cite-able references for this purpose.

http://web.mnstate.edu/malonech/Psy232/Notes/Repeated%20Measures%20ANOVA%20GW14.htm

11 Jun 2014 Repeated Measures ANOVA Single factor repeated measures ANOVA for one or more samples. Author: Arash Salarian

As I had this problem and took me a while to figure it out, I thought it may be useful to someone else.
For anova_rm to be compatible with multcompare function of MATLAB, we need a stat output. I read somewhere (I printed out the webpage about a year ago but I can't find it anymore) that the post-hoc for repeated measures anova is the same as independent measures anova. You just need to replace MS(within) with MS(error) and df(within) with df(error) and then use Tuckey's equation to find the critical value. Thus, as I work with anova_rm as a one-way measure, I added the following lines at the end of anova_rm and added "stat" variable to the output of the function. I can now feed this stat to multcompare and the function sees stat as the output of anova1 and estimates the critical value using Tuckey (if that is your selected ctype) in the same way it does for anova1. As I don't use it for two-way measures, I haven't checked how to define stat for that purpose but I am sure it shouldn't be hard now.

[n,k]=size(X{1});
stats.gnames=num2str([1:k]');
stats.n=n*ones(1,k);
stats.source='anova1';
stats.means=y_j';
stats.df=n*k-n-k+1;
stats.s=sqrt(msR);

04 Mar 2014 arrow.m Draw a line with an arrowhead. Author: Erik Johnson

I think this is one of the best functions I have ever stumbled upon. Thanks alot.

04 Dec 2013 freezeColors / unfreezeColors Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images. Author: John Iversen

Hi everyone. I found out how to freeze the colorbar as well. Actually, I got my answer from the test_main.m file of this submission. You should download cbfreeze.m and cbhandle.m (by Carlos Adrian Vargas Aguilera) and freeze your colorbar with these functions. Just make sure to download cbhandle.m as well or MATLAB will give you some handle errors.

example:
load clown
figure
subplot(1,2,1)
imagesc(X)
colormap(gray)
freezeColors
h=colorbar;
cbfreeze(h)
subplot(1,2,2)
imagesc(X)
colormap(jet)
freezeColors
h=colorbar;
cbfreeze(h)

04 Dec 2013 freezeColors / unfreezeColors Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images. Author: John Iversen

Hi. This is great.
I have the same problem as Fedor. The colorbars that I add to my plots all have the same colors of the last entry for colormap. So now, my jet colormap has a gray colorbar.

Contact us