Community Profile

Contact

Top 5% contributor

At least in Matlab 2015, the function "int" is related to filters (in the filtstates package) or integration (in the symbolic pa...

accepted

2

Answered 1 month ago

5 downloads

1 year ago

9 downloads

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...

1

Answered 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 2 years 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 ...

Hi Alberto, I think your problem is due to your choice of t. Suppose that your frequency is 50Hz. If you choose t=0:.00...

0

You can do this midpoint=[a,b]; % This defines the midpoint. You should give a and b some value. lineangle=c; % This defines...

Answered 2 months ago

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 6 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-...

Answered 7 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 1 year 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...

I guess one option would be to reduce the size of your data using clustering such as K-means or Gaussian mixtures, and replace a...

Zoom in and out using the wheel in a rather practical manner

1 downloads

1 month ago

Are the functions polynomials as the example you mentioned? If they are, assume that the order of the polynomial is N (in you...

Load more