Answered

How to get the confidence intervals of regression coefficients in nlinfit?

There is no fixed answer to this, unless myfun is known and is nice enough to be analysed theoretically. In general, I would do ...

How to get the confidence intervals of regression coefficients in nlinfit?

There is no fixed answer to this, unless myfun is known and is nice enough to be analysed theoretically. In general, I would do ...

1 year ago | 0

Answered

Kronecker product of cell array elemnts

>> CL = repmat(transpose(C(:)), [3*20, 1]); >> CR = repmat(C(:), [1, 3*20]); >> P = cellfun(@kron, CL, CR, 'UniformOutpu...

Kronecker product of cell array elemnts

>> CL = repmat(transpose(C(:)), [3*20, 1]); >> CR = repmat(C(:), [1, 3*20]); >> P = cellfun(@kron, CL, CR, 'UniformOutpu...

1 year ago | 0

Answered

how can i convert duration type to datetime type??

duration is the difference between two datetime objects. So if you know a start date, you can add a duration to it to get the en...

how can i convert duration type to datetime type??

duration is the difference between two datetime objects. So if you know a start date, you can add a duration to it to get the en...

1 year ago | 2

Answered

Empty array of class objects from string name of class

OK, so it turns out, that I cannot do what I wanted to accomplish. The original problem arose from my not wanting to write an ex...

Empty array of class objects from string name of class

OK, so it turns out, that I cannot do what I wanted to accomplish. The original problem arose from my not wanting to write an ex...

1 year ago | 0

Question

Empty array of class objects from string name of class

If I have a class called SomeClass, I can create an empty array of SomeClass using: arr = SomeClass.empty Is there a way...

1 year ago | 3 answers | 1

Question

How to use setfield and getfield with colons or vector indices

There are times when getfield and set field are useful, but they are documented poorly. Suppose I have the following >> s...

1 year ago | 0 answers | 0

Question

Matlab parfor saves and loads temporary variables during execution!

The parallel pool implementation appears to save and load variables using effectively the normal "save" and "load" channels when...

1 year ago | 2 answers | 0

Answered

How to copy tab text in variable editor

OK, I find that if I double-click _on_ the variable name (below the tabs on the line with the small square grey box), then it ge...

How to copy tab text in variable editor

OK, I find that if I double-click _on_ the variable name (below the tabs on the line with the small square grey box), then it ge...

2 years ago | 0

Answered

How to copy tab text in variable editor

Sorry for the late reply. The screenshot below shows the variables opened with the right click menu of the last tab. There does ...

How to copy tab text in variable editor

Sorry for the late reply. The screenshot below shows the variables opened with the right click menu of the last tab. There does ...

2 years ago | 0

Question

How to copy tab text in variable editor

On some occasions, in the variable editor, due to some mouse mis-click, I find that the text contained in one of the tabs is sel...

2 years ago | 3 answers | 0

Question

Moving files via current folder window.

I have noticed that if I cut and paste a file or folder via the GUI, Matlab seems to physically move the location of file or fol...

2 years ago | 1 answer | 0

Answered

How can I plot a phase portrait of x' vs x

It is a little tricky to get good looking arrows. As a first iteration you could do this - an example with x = t and x' = t^2, b...

How can I plot a phase portrait of x' vs x

It is a little tricky to get good looking arrows. As a first iteration you could do this - an example with x = t and x' = t^2, b...

2 years ago | 0

Answered

keeping the distance between objects

I don't think the problem has an answer. There is one very obvious fact that has been embarrassingly missed. It is not possib...

keeping the distance between objects

I don't think the problem has an answer. There is one very obvious fact that has been embarrassingly missed. It is not possib...

5 years ago | 0

Answered

keeping the distance between objects

with this cutoff function you wrote, am I not retaining something like 5 s 304 mm 5.01 s 305 mm etc. when I re...

keeping the distance between objects

with this cutoff function you wrote, am I not retaining something like 5 s 304 mm 5.01 s 305 mm etc. when I re...

5 years ago | 0

Answered

How can I find the location of the minimum and maximum

[maxvalue, index_of_max] = max(C); [minvalue, index_of_min] = min(C);

How can I find the location of the minimum and maximum

[maxvalue, index_of_max] = max(C); [minvalue, index_of_min] = min(C);

5 years ago | 0

Answered

Find s, such that det(A+s*D) = d.

Since A is non-singular, we can write (warning: below is math, not code) M = A + s*D => M/A = I + sD/A (where D/A s...

Find s, such that det(A+s*D) = d.

Since A is non-singular, we can write (warning: below is math, not code) M = A + s*D => M/A = I + sD/A (where D/A s...

5 years ago | 1

| accepted

Answered

Should have been simple to read a class instance from .mat via C++, but wasn't

I guess one has to learn the hard way sometimes - but you always end up learning something - so the effort is not entirely waste...

Should have been simple to read a class instance from .mat via C++, but wasn't

I guess one has to learn the hard way sometimes - but you always end up learning something - so the effort is not entirely waste...

5 years ago | 0

Answered

Should have been simple to read a class instance from .mat via C++, but wasn't

On the other hand the bad news on <http://www.mathworks.in/help/matlab/matlab_external/custom-applications-to-read-and-write-mat...

Should have been simple to read a class instance from .mat via C++, but wasn't

On the other hand the bad news on <http://www.mathworks.in/help/matlab/matlab_external/custom-applications-to-read-and-write-mat...

5 years ago | 0

Answered

Should have been simple to read a class instance from .mat via C++, but wasn't

Actually, I have only used the mex and mx API in the dll not the matXXX API. I'll test your code out later, but one thing I noti...

Should have been simple to read a class instance from .mat via C++, but wasn't

Actually, I have only used the mex and mx API in the dll not the matXXX API. I'll test your code out later, but one thing I noti...

5 years ago | 0

Answered

Should have been simple to read a class instance from .mat via C++, but wasn't

The following works on my system (matlab 2014a) compiled with VS 2013. All error checking omitted to avoid excess typing. In...

Should have been simple to read a class instance from .mat via C++, but wasn't

The following works on my system (matlab 2014a) compiled with VS 2013. All error checking omitted to avoid excess typing. In...

5 years ago | 0

Answered

Should have been simple to read a class instance from .mat via C++, but wasn't

OK, you are the victim of indifferent documentation. If you check the example matdgns.c file in your matlab installation in: ...

Should have been simple to read a class instance from .mat via C++, but wasn't

OK, you are the victim of indifferent documentation. If you check the example matdgns.c file in your matlab installation in: ...

5 years ago | 0

Answered

Should have been simple to read a class instance from .mat via C++, but wasn't

Can't see any error in your code. Perhaps you could make one change. Try using matGetNextVariable(), instead of matGetVariabl...

Should have been simple to read a class instance from .mat via C++, but wasn't

Can't see any error in your code. Perhaps you could make one change. Try using matGetNextVariable(), instead of matGetVariabl...

5 years ago | 0

Answered

keeping the distance between objects

I assume: 1. The rope is fixed at Gx3 but free to move through all the other hooks. 2. Also you know the distance of each ...

keeping the distance between objects

I assume: 1. The rope is fixed at Gx3 but free to move through all the other hooks. 2. Also you know the distance of each ...

5 years ago | 0

| accepted

Answered

I have a time domain signal.I want to calculate energy of my signal......

I'm not sure what your question is, but if you want to understand how it works, you will have to study the "Discrete Time Fourie...

I have a time domain signal.I want to calculate energy of my signal......

I'm not sure what your question is, but if you want to understand how it works, you will have to study the "Discrete Time Fourie...

5 years ago | 0

Answered

What is the meaning of "-largeArrayDims"?

Without -largeArrayDims, the index type (mwIndex) in files that you compile with the matlab libraries is typedefed as 'int' (in ...

What is the meaning of "-largeArrayDims"?

Without -largeArrayDims, the index type (mwIndex) in files that you compile with the matlab libraries is typedefed as 'int' (in ...

5 years ago | 1

Answered

Finding indices when the curve stops decreasing

For some reason, didn't see the part about the noise. In that case prior smoothing would be an option. Another more involved, bu...

Finding indices when the curve stops decreasing

For some reason, didn't see the part about the noise. In that case prior smoothing would be an option. Another more involved, bu...

5 years ago | 0

Answered

Finding indices when the curve stops decreasing

Suppose the maximum was at index im. Then take: dyrgt = diff( y(im : end) ); dylft = diff( y(im : -1 : 1) ); irgt =...

Finding indices when the curve stops decreasing

Suppose the maximum was at index im. Then take: dyrgt = diff( y(im : end) ); dylft = diff( y(im : -1 : 1) ); irgt =...

5 years ago | 0

Answered

how i can solve a system of 5 equation where there is numbers

You should be able to get a symbolic solution - makes no difference what the values of the parameters are. They don't come into ...

how i can solve a system of 5 equation where there is numbers

You should be able to get a symbolic solution - makes no difference what the values of the parameters are. They don't come into ...

5 years ago | 0

Answered

I have a time domain signal.I want to calculate energy of my signal......

Your time values are more or less uniformly spaced with some slight variation but that shouldn't matter. Just type in the exact ...

I have a time domain signal.I want to calculate energy of my signal......

Your time values are more or less uniformly spaced with some slight variation but that shouldn't matter. Just type in the exact ...

5 years ago | 0

Answered

how i can solve a system of 5 equation where there is numbers

Check the symbolic toolbox and "Mupad" that comes with it.

how i can solve a system of 5 equation where there is numbers

Check the symbolic toolbox and "Mupad" that comes with it.

5 years ago | 0