Answered

How to get size of an object

The problem with all the suggested solutions is that the matlab properties() function will not return the names of private prope...

How to get size of an object

The problem with all the suggested solutions is that the matlab properties() function will not return the names of private prope...

9 meses ago | 0

Answered

Matlab Beep at zooming in plot and evaluating variables

The problem persists in 2019a.

Matlab Beep at zooming in plot and evaluating variables

The problem persists in 2019a.

más de 1 año ago | 0

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

más de 2 años 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...

más de 2 años 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...

más de 2 años ago | 3

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

más de 2 años 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...

más de 2 años 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...

más de 2 años 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...

más de 2 años 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...

más de 3 años 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 ...

más de 3 años 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...

más de 3 años 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...

más de 3 años 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...

casi 4 años 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...

más de 6 años 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...

más de 6 años 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);

más de 6 años 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...

más de 6 años 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...

más de 6 años 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...

más de 6 años 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...

más de 6 años 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...

más de 6 años 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: ...

más de 6 años 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...

más de 6 años 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 ...

más de 6 años 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...

más de 6 años 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 ...

más de 6 años 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...

más de 6 años 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 =...

más de 6 años 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 ...

más de 6 años ago | 0