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 4 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 4 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 7 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 11 months 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 ...

Answered 1 year ago

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 7 months ago

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

0

Asked 12 months 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...

Asked 6 months ago

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

Asked 11 months ago

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 a question about how structs are handled when they are used as input arguments to functions. I know about "copy on write",...

1 Answers

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

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

Answered 12 months ago

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'),'...

Asked 1 year ago

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

Hi, I have a cell array that contain a number of different sized matrices. I need to multiply each of these cell elements, where...

Load more