Community Profile

Contact

Top 1% contributor

Hi, I have used matlab for a long time and always liked it. That to say until version 2014b. This version seems to have sever...

3 Answers

1

Asked 9 months ago

I just found an answer to the problem, but I still wanted to publish this question to raise the problem. I would not be able to ...

accepted

Answered 9 months ago

It is always possible to go the long way around here. a = {11.741667 3.913892 14.488700 8.746350 0.349066}; str = cellfun(...

Answered 12 months ago

Ok this seems to give some chaotic pattern. t = 0:0.01:2*pi; w2=linspace(0,20,length(t)); w1=4*w2; m=w1.*t; n=w2.*t; x...

Answered 1 year ago

This is a fully vectorized operation. And it should be quite efficient. Requires making 2 matrices however. a = [1 2 0 0;3 ...

In matlab the naturlal number e is not defined. It is still a variable. You can try by just typing e. Instead of using you just ...

Ok I am still not sure what you meant but I think I have an idea. If you want the mean viscosity for each temperature, for every...

Hi, I wonder how a |try-catch| block is evaluated in matlab. In particular, is the |try-catch| block evaluated in runtime or com...

2 Answers

Asked 11 months ago

Hi, I just ran the profiler on a function and was quite surprised. EDIT: New run function outputVector = addAndReplace(i...

0

Asked 1 year ago

The solution to this problem comes from the mathematical limit. 1/0 = inf is really a bit sloppy. If you remember how this was i...

2

Hi, I have noticed something strange. It have most likely to do with the fundamental structure of matlab. What I wonder is if th...

Hi, during my work with matlab I have noticed that matlab always tries to improve some basic functionality of other programming ...

Hi, The plot function have a set of 7 colors that are predefined and can be added as plot(any_x,any_y,'r'); There are...

Hi, I wonder if anyone have an idea about the character #. It appears to have no use in matlab and it can neither be used in ...

1 Answers

Asked 4 months ago

Hi, I a question about how structs are handled when they are used as input arguments to functions. I know about "copy on write",...

Asked 8 months ago

You can use repmat t0 = [1,0,0,1]; % [00.00, 01.00, 02.00, 03.00] t1tmp = repmat(t0,10,1); % repeat rows 10 times t1tmp =...

Answered 11 months ago

I have been trying a little and found out a way to do this. I found that the function to use is <http://www.mathworks.se/help/ma...

Hi, guide is an excellent way to create a gui i matlab, but due to the large amount of code generated it get a bit slow and also...

Asked 12 months ago

It is possible, but not trivial. Matlab figures is a one type of gui. For these there are some defined processes that can do wha...

There is 2 types of logical operators for some operations in matlab. For and can you use either |&&| or |&| to operator on scala...

Ok, I assume that the example "a=[1 1 2 4 5 1 1 1]; than the answer should be b= 1 3 1" had a typo and that you want to randomly...

Since the type of the date is only vaguely specified I will select one. A = {'01/01/2014', 1.2345;'03/01/2014', 1.2345;'04/...

This function you use, |quad| uses an adaptive recursive algorithm to get an answer with below some tolerance. This method calls...

Have you tried |unicode2native| ? decString = unicode2native('hi','utf-8'); hexString = dec2hex(decString); You can r...

You may want something like this, function printfields(theStruct) fields = fieldnames(theStruct); for k = 1:length(...

Are you sure any of the curves are correct? It seems a bit strange that both curves peaks when one or both of the distributions ...

Ok try this, a = 1:5; b = 2:2:10; plot(a,b) ax1 = gca; ax2 = axes('Position',get(ax1,'Position'),'XAxisLocation...

Hi, I have got this really strange error in matlab. When I try to run the command save(fullfile('filepath','filename'),'...

You can try if your version of MATLAB supports quad2d. This method uses adaptive simpsons quadrature to calculate 2D integrals. ...

There is a function in matlab called "butter" that creates the coefficients to a butterworth filter of order N with cut-off freq...

Load more