Community Profile

Contact

Top 5% contributor

You can do that by plotting each bar separately. For example, suppose that data is a matrix of 31 x 3 and that the colors for th...

accepted

1

Answered 8 months ago

6 downloads

11 months ago

Are you using the function *dot(x,y)* ? If that's so, better use x'*y (assuming that x and y are column vectors) In my...

Answered 1 year ago

Assuming that V =[20 40 10 20 5 10 30 15 25 35]; C ={ {1 2 3}; {5 2 3 1}; {3 4 2 1}; {1 ...

Dear Rhys Taus, I might be wrong, but I think the problem is that you might be rewriting the axes instead of modifying them. ...

I might not have understood your question, so please let me know if this does not answer it. Suppose that you have a dataset ...

As far as I can see, there is a problem in the code. Wheneven the condition strcmp(alldata(i,1),alldatafel(j,1)) && strcmp(...

Answered 3 months ago

The problem is in the equation. The constant for the charge of the capacitor is R*C. Therefore, instead of writing Vc = V*(1-...

0

Answered 4 months ago

The comparison can be done in several different ways. Suppose that X is the original signal and that XR is its reconstruction. Y...

Answered 10 months ago

This solution is based on patch y=-2:.01:2; z=4-y.^2; numy=length(y); % Constructing the vertices V=zeros(numy,3)...

Each section is being played for one second because you are setting that in the line y(1 + timeDomain + (((k+1)/2)-1)*fs) = ...

for a=1000:100:20000 ia=floor(a/100)-9; for b=100:10:200 ib=floor(b/10)-9; for c=.2:.01:.3 ic...

Maybe you can solve this by setting the axes property 'DataAspectRatio' to a specific value. For example: set(gca,'DataAspe...

How are you creating the patch? Is it only one patch? If you want the patches to be painted, you will need to create two patc...

Dear Noah, Suppose that A is your original matrix and B is the matrix you want to obtain. You could do something like this:...

Try this for j=days_left_in_contract-1:-1:2, counter=days_left_in_contract-j; difference=min(counter,days_left_wi...

scatter draws points without lines connecting them whereas plot may or may not plot the lines, depending on the arguments. sc...

Yes it is! First you need to make a vector b with the labels: b=arrayfun(@(x)num2str(x),a,'UniformOutput',false); Then,...

Suppose that C is your cell array Cnew=C; %Just for not losing original values Cnew(cellfun(@(x)isempty(x),C(:,6)),:)=...

Yes, try this: uicontrol('style','popup','string',{'<HTML><FONT COLOR="red" SIZE="10" FACE="ARIAL"><b><i>Here</i></b></HTML...

How about using find after conversion to numeric value of the answer? ansnum=str2num(answer(1,1)); k=find(dataset==ansnum)...

Hopefully this helps: 1) Save the handles of the ui elements. Suppose that hpopup and hslider are the handles of the pop up m...

You can do that using the following code A=[1 2 3 4 5 6 8 9 10 11 12 13 14]; B=[6 6 6 6 4 4 4 2 2 6 6 4 4]; C=d...

If I understood correctly, you want the colour to vary according to the value of "z". But the problem is that plot3 takes only o...

You can do the following: nmfinal=mean(cell2mat(squeeze(struct2cell(nm.data))'))'; You might need to take some precautio...

You can just do [any(any(a(:,:,1)>0)),any(any(a(:,:,2)>0))] or just shorter nonzero2D=@(a,k)any(any(a(:,:,k)>0)) ...

Answered 9 months ago

Just in case, you could also provide a contextual menu by doing the following hmenu=uicontextmenu; uimenu(hmenu,'Label','M...

Have you tried using the command text()? Suppose that the tip of one of the lines is in (a,b). Then you can just do text(a,b...

You can do the following sqrtllrh=fminsearch(@(sqrtllr)(cdf_func(sqrtllr.^)-h)^2,1); llrh=sqrtllrh^2; The explanation...

9 downloads

Load more