Community Profile

Contact

Top 1% contributor

61 downloads

3 months ago

Do: [C I]=max(x(:)); now C is the maximum value, I is the index of where it is, so that x(I) is C. If you want the 5...

accepted

3

Answered 6 months ago

That is because a number cant be bigger than 60 and lower than 40 at the same time: L<40 & L>60 You need to figure out wh...

1

Answered 2 months ago

There are better ways to do this, but the way that needs the less thought and the way you would understand the fastest would be:...

First eliminate any rows that are not 2010, 2009 or 2008. I am assuming here that 2010 is the latest year so: check1=nnz(A(:...

I am not sure how princomp works, but here is a quick way to do this. 1) mean center your data, meaning subtract the mean acr...

for i=1:26 eval(strcat('xloc',num2str(i),'=COTO_',num2str(i),'_sphere(:,1);')); end This is a lazy way to do it. Also, ...

http://www.mathworks.com/hardware-support/arduino-matlab.htmlhtml I would still suggest C or LabVIEW(beginner friendly) for A...

0

The very same page you copy pasted that explanation from has 2 decent references of a code and example. <http://en.wikipedia....

Take an image with the best exposure possible, having high contrast between the paper white and font black. Use a simple treshol...

For this particular image and any image with a similar enough trivial nature, there is a very short solution: A is your image w...

Answered 3 months ago

Do you specifically need it to be a cell array at the end? Why not just use a recursive string concatenation? Something like: ...

Yes, they will be. You can also check the function "save" and its flags to maintain compatibility with even older versions of MA...

Answered 5 months ago

npx=0; count=0; for i = 1:5 [pixelcount greylevel] = imhist(image(i)); count=count+pixelcount; npx=npx+numel...

I don't have the Global Optimization Toolbox, but I went through your code and my first impression is that your problem could be...

[C,ia,ic] = unique(A,'rows')

files = dir('*.wav'); audio = cell(1,125); for k = 1:125 audio{k} = audioread(files(k).name); end

Use _eval_ alongside _strcat_ and _num2str_.

BB=repmat(B,[n 1]); C=A./BB;

check1=(a+circshift(a,[-1 0])); check2=(a-circshift(a,[-1 0])); check1==0 % is 0's followed by 0's check1==2 % is 1's f...

All you need to do is calculate Y axis for that entire range using the fit you calculated. Pass x=0:1:1400 through f(x), then pl...

C = unique(A,'rows')

help polyval And the rest is your homework. Good luck.

This depends on how you would like to do the cross validation. Leave-one-out cross validation has a nice trick for linear models...

Poisson equation boils down to a simple Ax=b problem. If you have the parallel computing toolbox, using mldivide (or the plain \...

This is not a very clear question. If you are just interested in 3 2D projections of a 3D object, all you have to do is plot x&y...

Your values are in polar form. You can contour plot them in a cartesian frame as x-axis=r and y-axis=angle in which case you wou...

You can either use a regularized regression function, or the optimization toolbox. I would guess optimization is the easier choi...

I am assuming you are either referring to cftool or dfittool. If you wnat to find out how the functions work, go to "File" and c...

Your question is worded in an ambiguous way, I am not sure I understand your exact question. I will speculate a bit and hope one...

Load more