Community Profile

Contact

Top 5% contributor

Hi all Is there any way to remove the error bar ends in matlab R2014b? I used a function called removeErrorBarEnds for thi...

2 Answers

0

Asked 6 months ago

I can't think of a way to do your question 1 in one line of code, but is it really that important to remove one line of code? ...

accepted

1

Answered 9 months ago

Hi there I am trying to optimize some code, an example is given below. In my code, v_ustar etc are calculated elsewhere, and ...

1 Answers

Asked 11 months ago

Hi there I have a function that takes a very long time to calculate (can be several hours), and I need to find when it become...

Hi there I am trying to optimize some code, and have come quite far with repmat. I think it could become even faster with bsx...

My group recently purchased a KUSB-488B GPIB to USb converter, in order to connect a Keithley 6220 current source and 2182 Voltm...

Whenever I close matlab it saves the current workspace as matlab.mat. I do not want this, but cannot find a way to turn automati...

Asked 1 year ago

Hello I have a rather large sum that I want to evaluate in MATLAB. Symbolically it looks like this: huge_sum(qx,qy)=sum_n(...

Hi For security reasons at work I had to install some programs on my computer, which runs Ubuntu 14.04. This for some reason ...

0 Answers

2

Hi there I have a loop that I would like to run with parfor. A simplified version of the code is parfor qx_index=1:Nsx*Nx ...

If you format your code it's easier to read for people here. The error message means that some of the matrices that you multi...

Answered 8 months ago

for k=1:30 data=load(['composite' num2str(k) '.dat]); data_matrix(:,k)=data; end

This could be a start. I don't know exactly what output stepwisefit gives, and which parts of it you want to save, but I've give...

I will suggest breaking the problem into smaller pieces that can be done individually, and then stitching them back together. ...

I'm not sure what you're asking, but does this help? names={'test1', 'test2'}; for k=1:length(names) autoname=names{k...

I see several things that could be the issue. Try doing clear all Before you run your script. Then you'll notice tha...

A quick and dirty solution could be F_count=0; switch x(i) case {'a','A'} grade = 'F'; ...

I don't know if this is what you want, but you could do something like real_soln=soln(imag(soln)==0); or if there are fl...

This should work: if true F=zeros(100,100); %always preallocate c = 1:100; V = 2 * (c-1); for r = 1:100 U = 1 ...

Answered 11 months ago

A1=' '; for i=1:1:10 if i<10 A2=[num2str(i),',']; else A2=num2str(i); end A1=[A1,A2]; end disp(A1) You can pr...

I managed to find a solution: the problem was that 64-bit MATLAB did not recognize the drivers. I installed 32-bit MATLAB and no...

Hi guys Is there any way to have both horizontal and vertical errorbars in R2014b? Thanks in advance!

Asked 7 months ago

I need help reading a number of data files. An example of how the files look is the following: # some header text and numbe...

Asked 9 months ago

Consider this example: A=zeros(5); A(3,3)=1; surf(A) view(2) When viewing this, one would be tempted to think that th...

Asked 10 months ago

Try plot3 or scatter3 For a contour plot you need a nxn matrix

So you have this command 50 places in the script? A quick fix would be to do a search and replace for print('-djpeg' --> prin...

strcmp(D(i).name,'.' this compares the string in D(i).name to '.'. If the string is indeed '.', it returns TRUE (in MATLAB,...

If you want to plot a picture, then maybe surf or imagesc is the right command. EDIT: What is it exactly you want? Do you ...

I don't know how fast this will be for large n, but this seems to do what you want. You can probably vectorize at least one of t...

The commands real and imag are probably what you are searching for.

Load more