Community Profile

photo

Juliette Salexa


University of Waterloo

282 total contributions since 2008

Professional Interests: Chemical Physics, Stochastic Evolution, DNA and Quantum Computing

Contact

Contributions in
View by

Question


Too much memory being used while freeing up memory!
On a machine with 3GB of RAM: K=rand(256,200000); % works perfectly with or without ; at the end K(:,1)=[]; Out of me...

2 years ago | 0 Answers | 0

0

answers

Question


dlmwrite is printing the wrong number
dlmwrite('a.txt',288230387962871929,'precision',40); Creates a file with one number listed: 288230387962871940 I though...

2 years ago | 1 Answers | 0

1

answer

Question


ode45 where odefun requires more parameters
My odefun.m has the following input structure: function dy = odefun(t,y,a,b,c) I want to use ode45 to integrate the ODE,...

2 years ago | 1 Answers | 0

1

answer

Responded


Re: bsxfun runs faster in batches
Daniel, Just remember that MATLAB, like many programs, are (thankfully) optimized for Windows. I'd rather they spend more time ...

4 years ago | 3403 views

Question


Centering multiline text with the LaTeX interpreter
To get two-line text on a figure I have to do: uicontrol('Style','text','Position',[14, -1000,0], 'String',{'line 1','Longe...

4 years ago | 1 Answers | 0

1

answer

Responded


Re: give each lab one copy of my structure array ?
Hi again, Further to my message directly above this one: I wrapped tic; and toc; around the parfor portion, and I wrapped "open...

4 years ago | 5114 views

Responded


Re: give each lab one copy of my structure array ?
Hi Edric, Thank you VERY much for your very useful response once again. It's a shame that MATLAB doesn't let us do parfor with ...

4 years ago | 5114 views

Responded


Re: give each lab one copy of my structure array ?
Hello, I'm back to this question now unfortunately ='( I'm using the suggestion of Edric M Ellis from 3 Jan 2012 (a couple post...

4 years ago | 5114 views

Question


Display output in FORTRAN format ?
How do I display the numerical contents of an array so that rather than looking like: A= 5.43297486350203e-005 + 2.66...

4 years ago | 1 Answers | 0

1

answer

Question


Multi-GPU computing in MATLAB
I'm considering getting either: 1) one GTX 690 (4GB of RAM shared between two 1536 core GPUs, which share the same PCIe bus) ...

4 years ago | 1 Answers | 0

1

answer

Question


What's the best image format to save this matlab figure ?
I need to save thousands of figures that look like this (except without any letters, the final figure is JUST the points): ht...

4 years ago | 2 Answers | 0

2

answers

Responded


Re: Clear variables within scope of function !
The function will require a large amount of memory, and if the workspace already has a lot of memory occupied the function might...

4 years ago | 8753 views

Posted


Clear variables within scope of function !
Hello ! I'd like a function to start off by clearing any junk that might be stored in the workspace, in case the user hasn't do...

4 years ago | 8753 views

Posted


legend malfunction
This works nicely: hold on plotHandle=plot(1:5,rand(3,5)); legendHandle=legend(plotHandle,[arrayfun(@(i) sprintf('N=%d', i), 1...

4 years ago | 3878 views

Posted


apply a function and receive particular index at the same time
Hello, I'm loading an array, and then right after splitting the result into to variable: A=struct2array(load('A.mat')) time=A(1...

4 years ago | 2150 views

Responded


Re: duplicated input variable
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <5e31bd60-eb4f- ========== Thanks ImageAnalyst, That's like option...

4 years ago | 1696 views

Posted


duplicated input variable
Hello, This seems like a silly question, but I'm struggling with this. I have a function that needs requires as input both the...

4 years ago | 1696 views

Responded


Re: call Mathematica from Matlab on a PC?
I'm largely interested in whether or not there's been any development on this front over the last 14 years! I'd like my matlab ...

4 years ago | 4010 views

Responded


Re: can two functions be put in one .m file?
I'm not really asking for advice on how to speed up my code (though I do agree with what you're saying), I'm just wondering if a...

5 years ago | 90027 views

Responded


Re: can two functions be put in one .m file?
Thank you Nasser, I know you mean well, but speed really matters for me. It might not for you, but it does for me =)

5 years ago | 90027 views

Responded


Re: can two functions be put in one .m file?
Thanks Matt, so basically the END statements for functions are optional ? Also, will it slow down my code if I have to function...

5 years ago | 90027 views

Responded


Re: can two functions be put in one .m file?
Hi TideMan, are you sure you don't need the 'end' statement between them ? I tried in matlab 2007b and 2010a and in both cases, ...

5 years ago | 90027 views

Responded


Re: can two functions be put in one .m file?
Hi TideMan, are you sure you don't need the 'end' statement between them ? I tried in matlab 2007b and 2010a and in both cases, ...

5 years ago | 90027 views

Responded


Re: It's time for matlab to incorporate Matt Fig's EXPAND
BSXFUN is absolutely amazing, I won't argue with that. Accelereyes Jacket has been able to speed up BSXFUN by a factor of over ...

5 years ago | 2894 views

Responded


Re: It's time for matlab to incorporate Matt Fig's EXPAND
True, but it would improve matlab significantly with very very little overhead !

5 years ago | 2894 views

Posted


It's time for matlab to incorporate Matt Fig's EXPAND
A function that's used everyday by thousands of people shouldn't need to be copied into every folder ! Of course we can 'add to...

5 years ago | 2894 views

Responded


Re: give each lab one copy of my structure array ?
Thanks VERY much Edric! Your suggestion for combining the two loops is brilliant, and I can see it being useful in many of my o...

5 years ago | 5114 views

Posted


give each lab one copy of my structure array ?
Hello! I've read through the parallel computing toolbox documentation several times now and am still very confused about someth...

5 years ago | 5114 views

Responded


Re: create a 'loop' within an argument of the legend command
Bruno always knows the answers! Merci beaucoup!

5 years ago | 1568 views

Posted


create a 'loop' within an argument of the legend command
Hi! I want to do legend('$N=1$','$N=3$','$N=7$' ..... '$N=356$') where the numbers 1,3,7,356 are stored in the array N I star...

5 years ago | 1568 views

Load more