Answered

extract roll pitch yaw rotation angles from 3D transform

See if you can find the formula your are looking for https://www.geometrictools.com/Documentation/EulerAngles.pdf

extract roll pitch yaw rotation angles from 3D transform

See if you can find the formula your are looking for https://www.geometrictools.com/Documentation/EulerAngles.pdf

4 months ago | 0

Answered

R2021b: The Run Section tool in the Editor has been removed

It's still there

R2021b: The Run Section tool in the Editor has been removed

It's still there

4 months ago | 0

| accepted

Answered

is it possible to know if an alert dialog box has opened in app designer app?(testing purposes)

Check out function ishandle

is it possible to know if an alert dialog box has opened in app designer app?(testing purposes)

Check out function ishandle

4 months ago | 0

| accepted

Question

Restriction of functions run under parfeval

I just see parfeval is available for R2021b allowing to run parallel function (in background) even without the parallel toolbox,...

4 months ago | 1 answer | 1

Answered

command to read all current pressed keyboard keys

This File Exchange works well for me Hebirobotics No toolbox is required and no need to open a figure() to catch the keypressed...

command to read all current pressed keyboard keys

This File Exchange works well for me Hebirobotics No toolbox is required and no need to open a figure() to catch the keypressed...

5 months ago | 1

Answered

Error using uitable in a figure, not uifigure

Sorry there is no workaround.

Error using uitable in a figure, not uifigure

Sorry there is no workaround.

5 months ago | 0

Answered

Is version 2021a compatible with windows 10 home (version 21h1)?

Yes, it's my config at home.

Is version 2021a compatible with windows 10 home (version 21h1)?

Yes, it's my config at home.

5 months ago | 0

| accepted

Answered

Is there an efficient way to write a piecewise function ?

tempfun = @(x) interp1([0 T], A([1:end end]), x, 'previous'); temp = tempfun(whatever_query_t);

Is there an efficient way to write a piecewise function ?

tempfun = @(x) interp1([0 T], A([1:end end]), x, 'previous'); temp = tempfun(whatever_query_t);

5 months ago | 0

Answered

Why does the speed of histcounts vary so much?

It's just an assumption but histcounts probably use binary search on finite edge values. The large last edge probably penalizes ...

Why does the speed of histcounts vary so much?

It's just an assumption but histcounts probably use binary search on finite edge values. The large last edge probably penalizes ...

5 months ago | 1

Answered

I have a complete undirected graph with labeled edge. is there any toolbox to apply TSP in such graph.

There are several submissions of TSP in file exchanges or if you have optimization toolbox https://www.mathworks.com/help/optim...

I have a complete undirected graph with labeled edge. is there any toolbox to apply TSP in such graph.

There are several submissions of TSP in file exchanges or if you have optimization toolbox https://www.mathworks.com/help/optim...

5 months ago | 0

Answered

How to find a vector multiple times in an array?

A = [1 3 4]; %x,y,z-coordinates - vector B = [2 3 4; 1 3 4; 5 5 6; 3 4 6; 1 3 4]; %array % which row match find(ismember(B,...

How to find a vector multiple times in an array?

A = [1 3 4]; %x,y,z-coordinates - vector B = [2 3 4; 1 3 4; 5 5 6; 3 4 6; 1 3 4]; %array % which row match find(ismember(B,...

6 months ago | 1

Answered

Could anyone help me how to generate the matrix in the following manner as described below

hi=repelem((1:5)',100*(1:5)); r=ceil(rand(size(hi)).*hi)

Could anyone help me how to generate the matrix in the following manner as described below

hi=repelem((1:5)',100*(1:5)); r=ceil(rand(size(hi)).*hi)

6 months ago | 0

| accepted

Answered

Looking for a faster way of finding the first element larger than a given number in a sorted array

You might try k = discretize(r,b); if b(k) == r k = k+1; end

Looking for a faster way of finding the first element larger than a given number in a sorted array

You might try k = discretize(r,b); if b(k) == r k = k+1; end

6 months ago | 0

Answered

How to calculate permutation powers

M= [ 1 2 3 4 5 6 7 8 9 10; 3 6 8 1 2 4 5 7 10 9] S=s...

How to calculate permutation powers

M= [ 1 2 3 4 5 6 7 8 9 10; 3 6 8 1 2 4 5 7 10 9] S=s...

6 months ago | 0

| accepted

Answered

Applying vectorization techniques to speedup the performance of dividing a 3D matrix by a 2D matrix

If you have C compilers the fatest methods are perhaps mmx and MultipleQR avaikable on FEX https://www.mathworks.com/matlabcent...

Applying vectorization techniques to speedup the performance of dividing a 3D matrix by a 2D matrix

If you have C compilers the fatest methods are perhaps mmx and MultipleQR avaikable on FEX https://www.mathworks.com/matlabcent...

6 months ago | 1

Answered

Can I pass arguments to a @callbackFcn?

% Assuming operation,mode are defined % operation = ... % mode = ... configureCallback(s,"terminator",@(s,t) readSerialData(s...

Can I pass arguments to a @callbackFcn?

% Assuming operation,mode are defined % operation = ... % mode = ... configureCallback(s,"terminator",@(s,t) readSerialData(s...

6 months ago | 1

Answered

How can I call M fuctions in different thread in mex coding matlab and C++?

No you cannot. MATLAB will crash since many MATLAB functions are not thread safe.

How can I call M fuctions in different thread in mex coding matlab and C++?

No you cannot. MATLAB will crash since many MATLAB functions are not thread safe.

6 months ago | 0

| accepted

Answered

How to quickly do Cholesky factorization for many small matrices?

It requires MEX, but it should be fast https://www.mathworks.com/matlabcentral/fileexchange/37515-mmx

How to quickly do Cholesky factorization for many small matrices?

It requires MEX, but it should be fast https://www.mathworks.com/matlabcentral/fileexchange/37515-mmx

6 months ago | 0

Answered

how to vectorize squared function

X=rand(3,10); Y=rand(4,10); L=rand(10); N=size(X,1); M=size(Y,1); XX=reshape(X,N,1,[]); YY=reshape(Y,1,M,[]); YX=reshap...

how to vectorize squared function

X=rand(3,10); Y=rand(4,10); L=rand(10); N=size(X,1); M=size(Y,1); XX=reshape(X,N,1,[]); YY=reshape(Y,1,M,[]); YX=reshap...

6 months ago | 0

Question

Trigger event for graphic handle object?

The function notify seems to be designed for user-define class. Is it possible to make it works on MATLAB graphic handle objects...

6 months ago | 0 answers | 2

Answered

Is it possible to make inactive some of lines?

Put "..." (without the quotes) in front of the lines you want to hide

Is it possible to make inactive some of lines?

Put "..." (without the quotes) in front of the lines you want to hide

7 months ago | 0

Answered

Return all ShortestPath explored nodes

This problem has been answered in this thread https://www.mathworks.com/matlabcentral/answers/494497-how-can-i-get-all-the-exi...

Return all ShortestPath explored nodes

This problem has been answered in this thread https://www.mathworks.com/matlabcentral/answers/494497-how-can-i-get-all-the-exi...

7 months ago | 0

Answered

How interp2 deal with edges on bicubic interpolation?

The boundary handling is descriibed in the section Boundary Condition of this Cubic interpolation reference Especially the equa...

How interp2 deal with edges on bicubic interpolation?

The boundary handling is descriibed in the section Boundary Condition of this Cubic interpolation reference Especially the equa...

7 months ago | 2

| accepted

Answered

splines with derivative conditions at support points

There is the option point-wise constraints (pntcond) of my FEX BSFK to achieve your goal.

splines with derivative conditions at support points

There is the option point-wise constraints (pntcond) of my FEX BSFK to achieve your goal.

7 months ago | 0

Answered

how to use threads in matlab app designer

Many MATLAB stock functions are not thread safe, they are not suitable for multi-thread run. This is MATLAB limitation one canno...

how to use threads in matlab app designer

Many MATLAB stock functions are not thread safe, they are not suitable for multi-thread run. This is MATLAB limitation one canno...

7 months ago | 0

Answered

Compiler Support for IntelĀ® oneAPI Toolkits - Fortran

It works for me (C) you light be abe to adapt for fortran https://www.mathworks.com/matlabcentral/answers/678588-mex-how-to-mod...

Compiler Support for IntelĀ® oneAPI Toolkits - Fortran

It works for me (C) you light be abe to adapt for fortran https://www.mathworks.com/matlabcentral/answers/678588-mex-how-to-mod...

7 months ago | 0

Answered

How to generate random uint64 values

maxval = int64(2^60); n = 100; twop32 = 2^32; q = double(maxval/twop32); hi = floor(q*rand(1,n)); himax = floor(q); lom...

How to generate random uint64 values

maxval = int64(2^60); n = 100; twop32 = 2^32; q = double(maxval/twop32); hi = floor(q*rand(1,n)); himax = floor(q); lom...

7 months ago | 0

Answered

How to generate random uint64 values

I can't see why you are reluctant to generate 2 x 4 bytes r = typecast(randi(intmax('uint32'),2*100,1,'uint32'),'uint64')

How to generate random uint64 values

I can't see why you are reluctant to generate 2 x 4 bytes r = typecast(randi(intmax('uint32'),2*100,1,'uint32'),'uint64')

8 months ago | 1