Feeds
已回答
How to update leap seconds (BREAKING NEWS: Future Leap Seconds eliminated!)
BREAKING NEWS: On 15 October 2026, delegates from 69 countries at the General Conference on Weights and Measures (CGPM) voted t...
How to update leap seconds (BREAKING NEWS: Future Leap Seconds eliminated!)
BREAKING NEWS: On 15 October 2026, delegates from 69 countries at the General Conference on Weights and Measures (CGPM) voted t...
16 days 前 | 0
提问
How to get var(2:3).fun indexing to work for my custom classdef file (Part 3)
Follow-on to my subsref learning from below: https://www.mathworks.com/matlabcentral/answers/2185039-how-to-get-end-indexing-to...
1 month 前 | 2 个回答 | 0
2
个回答提问
How to get "end" indexing to work for datetime in my custom classdef file (Part 2)
Follow-up to my earlier post here: https://www.mathworks.com/matlabcentral/answers/2185029-how-to-get-end-indexing-to-work-in-m...
1 month 前 | 2 个回答 | 0
2
个回答提问
How to get "end" indexing to work in my custom classdef file
I have a simple classdef file, shown below. The idea of this class is to encapsulate an array inside the class object instead o...
1 month 前 | 1 个回答 | 0
1
个回答提问
Classdef Static method calling builtin subsref instead of classdef subsref
I've got a custom class class called myclass that is a thin wrapper around a double array. So, when constructing arrays of thes...
3 months 前 | 1 个回答 | 0
1
个回答已回答
Rapid calculation of the number of points in a circular neighbourhood
Here is a C-mex routine to do the job. The run itself using the free MinGW64 C Compiler without any special optimizations or mu...
Rapid calculation of the number of points in a circular neighbourhood
Here is a C-mex routine to do the job. The run itself using the free MinGW64 C Compiler without any special optimizations or mu...
4 months 前 | 0
已回答
Using C library, function with function pointer as a parameter.
I'm assuming your real function is not actually sqrt(), else you would just call a C math library function for this. But my exa...
Using C library, function with function pointer as a parameter.
I'm assuming your real function is not actually sqrt(), else you would just call a C math library function for this. But my exa...
4 months 前 | 0
| 已接受
已回答
Does Matlab Take Full Advantage of the BLAS Routines?
"Does Matlab Take Full Advantage of the BLAS Routines?" No. At least it didn't used to and I am assuming that is still the cas...
Does Matlab Take Full Advantage of the BLAS Routines?
"Does Matlab Take Full Advantage of the BLAS Routines?" No. At least it didn't used to and I am assuming that is still the cas...
5 months 前 | 2
| 已接受
已回答
How to use half.typecast
k = uint16(65444) dec2bin(k) half.typecast(k) The half precision data type has 1 sign bit, 5 exponent bits, and 10 explicit s...
How to use half.typecast
k = uint16(65444) dec2bin(k) half.typecast(k) The half precision data type has 1 sign bit, 5 exponent bits, and 10 explicit s...
6 months 前 | 4
| 已接受
已回答
Does [V,D] = eig(A) always return normalized eigenvectors for any real matrix A?
A discussion of eigenvector normalization can be found in the doc. In some cases, the answer is yes they are "normalized to unit...
Does [V,D] = eig(A) always return normalized eigenvectors for any real matrix A?
A discussion of eigenvector normalization can be found in the doc. In some cases, the answer is yes they are "normalized to unit...
8 months 前 | 1
已回答
Flag to switch quaternion definition from Hamiltonian to JPL Convention for the scalar?
I think all of the MATLAB functions are s,i,j,k. I am unaware of any functions that allow for i,j,k,s. You will probably have ...
Flag to switch quaternion definition from Hamiltonian to JPL Convention for the scalar?
I think all of the MATLAB functions are s,i,j,k. I am unaware of any functions that allow for i,j,k,s. You will probably have ...
10 months 前 | 3
| 已接受
已回答
Performance of MEX versus builtin functions
I don't know the answer to your first question. But I would expect the overhead for the mex function entry (other than loading i...
Performance of MEX versus builtin functions
I don't know the answer to your first question. But I would expect the overhead for the mex function entry (other than loading i...
10 months 前 | 1
| 已接受
已回答
mxArray values of plhs[] on entry to mexFunction()
I am unaware of any way to detect this in a mex function. It would be nice, of course, so that mex code could avoid some unnece...
mxArray values of plhs[] on entry to mexFunction()
I am unaware of any way to detect this in a mex function. It would be nice, of course, so that mex code could avoid some unnece...
11 months 前 | 1
| 已接受
已回答
Find roll, pitch, and yaw from the same vector in two different coordinate systems
If you just want a "minimum angle rotation" solution, you can form a rotation quaternion from the vectors and then convert the q...
Find roll, pitch, and yaw from the same vector in two different coordinate systems
If you just want a "minimum angle rotation" solution, you can form a rotation quaternion from the vectors and then convert the q...
12 months 前 | 0
已回答
Array Indices error while plotting an exponential function.
Maybe this is what you want. Use f instead of f(t), and use .* (element-wise multiply) instead of * (matrix multiply). The syn...
Array Indices error while plotting an exponential function.
Maybe this is what you want. Use f instead of f(t), and use .* (element-wise multiply) instead of * (matrix multiply). The syn...
1 year 前 | 0
| 已接受
已回答
mxCreateDoubleMatrix - what value is used to initialize the array ? Documentation incomplete
I agree that the official documentation could maybe be written better regarding how elements are initialized. I.e., simply addin...
mxCreateDoubleMatrix - what value is used to initialize the array ? Documentation incomplete
I agree that the official documentation could maybe be written better regarding how elements are initialized. I.e., simply addin...
1 year 前 | 0
| 已接受
已回答
Matlab crashed when running Pardiso mex file with certain input size
I haven't had time to look at this thoroughly, and I am unfamiliar with PARDISO, but the symptoms you describe are usually the c...
Matlab crashed when running Pardiso mex file with certain input size
I haven't had time to look at this thoroughly, and I am unfamiliar with PARDISO, but the symptoms you describe are usually the c...
1 year 前 | 0
已回答
Setting the Output of a MEX Function as One of the Inputs After In Place Manipulation
A couple of problems. 1) First, your crash is caused by this: mxSetDoubles(plhs[0], mxGetDoubles(prhs[1])); You cannot atta...
Setting the Output of a MEX Function as One of the Inputs After In Place Manipulation
A couple of problems. 1) First, your crash is caused by this: mxSetDoubles(plhs[0], mxGetDoubles(prhs[1])); You cannot atta...
1 year 前 | 1
| 已接受
提问
Why is vpa not converting double accurately?
I ran across this example that I don't understand. I don't use the Symbolic Toolbox much, but I thought vpa by default converte...
1 year 前 | 1 个回答 | 3
1
个回答已回答
Matlab crashes when Intel MKL's function Pardiso is called
Just seeing this post. Too late for OP, but for future readers here are my comments: ---------------------------------------- ...
Matlab crashes when Intel MKL's function Pardiso is called
Just seeing this post. Too late for OP, but for future readers here are my comments: ---------------------------------------- ...
1 year 前 | 0
已回答
Plots saved as JPEG look awful. How to improve?
You might also explore export_fig from Yair Altman, found here: https://www.mathworks.com/matlabcentral/fileexchange/23629-expo...
Plots saved as JPEG look awful. How to improve?
You might also explore export_fig from Yair Altman, found here: https://www.mathworks.com/matlabcentral/fileexchange/23629-expo...
1 year 前 | 0
已回答
need to vectorize efficiently calculating only certain values in the matrix multiplication A * B, using a logical array L the size of A * B
You can try this naive mex routine. Not optimized at all for cache hits or patterns in L. Might be faster to transpose A first, ...
need to vectorize efficiently calculating only certain values in the matrix multiplication A * B, using a logical array L the size of A * B
You can try this naive mex routine. Not optimized at all for cache hits or patterns in L. Might be faster to transpose A first, ...
1 year 前 | 1
| 已接受
已回答
ode45 code for 2 body problem
Your system has an initial non-zero total linear momentum. Recall that the 2-Body Problem has a constant center of mass motion ...
ode45 code for 2 body problem
Your system has an initial non-zero total linear momentum. Recall that the 2-Body Problem has a constant center of mass motion ...
1 year 前 | 0
| 已接受
已回答
Get total number of leap seconds relative to gps time
To convert a GPS timestamp to a UTC time, use the UTCLeapSeconds time zone which automatically accounts for leap seconds in the ...
Get total number of leap seconds relative to gps time
To convert a GPS timestamp to a UTC time, use the UTCLeapSeconds time zone which automatically accounts for leap seconds in the ...
2 years 前 | 0
已回答
How to use datetime with leap second strings?
@Peter Perkins Thanks for the reply. My comments ... "... I'd be curious to hear where you are getting timestamps that honor l...
How to use datetime with leap second strings?
@Peter Perkins Thanks for the reply. My comments ... "... I'd be curious to hear where you are getting timestamps that honor l...
2 years 前 | 0
已回答
How to preserve nanosecond precision in datetime calculations (for large numbers)
This question already has an accepted answer, but I would like to add my observations on this topic. datetime: Internally hold...
How to preserve nanosecond precision in datetime calculations (for large numbers)
This question already has an accepted answer, but I would like to add my observations on this topic. datetime: Internally hold...
2 years 前 | 0
提问
How to use datetime with leap second strings?
Suppose we have the following date time string: ds1 = "30-Jun-1972 23:59:59.5"; You can convert that to a datetime easily: da...
2 years 前 | 3 个回答 | 0
3
个回答已回答
Why Is Colon Operator Not Equivalent To linspace Command?
The short answer is that the algorithms are different. In the first place, 0.08 cannot be represented exactly in IEEE double pre...
Why Is Colon Operator Not Equivalent To linspace Command?
The short answer is that the algorithms are different. In the first place, 0.08 cannot be represented exactly in IEEE double pre...
2 years 前 | 3
已回答
C++ Mex function being passed a MATLAB class object
mxDuplicateArray( ) does indeed create deep copies ... or at least it used to. Not sure why that would have changed. There migh...
C++ Mex function being passed a MATLAB class object
mxDuplicateArray( ) does indeed create deep copies ... or at least it used to. Not sure why that would have changed. There migh...
2 years 前 | 1
| 已接受
已回答
Error using mex, building with 'MinGW64 Compiler (FORTRAN)'
FYI, you should never use literal constants in a Fortran API call, because you can't be sure whether the literal integer(4) or i...
Error using mex, building with 'MinGW64 Compiler (FORTRAN)'
FYI, you should never use literal constants in a Fortran API call, because you can't be sure whether the literal integer(4) or i...
2 years 前 | 1











