**Statistics**

RANK**27**

of 295,068

REPUTATION**7,623**

CONTRIBUTIONS

**72** Questions

**2,653** Answers

ANSWER ACCEPTANCE **
61.11%
**

VOTES RECEIVED**1,314**

RANK**48** of 20,171

REPUTATION**16,288**

AVERAGE RATING**4.70**

CONTRIBUTIONS**54** Files

DOWNLOADS **158**

ALL TIME DOWNLOADS**149679**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

sweep of tensor products

Strictly speaking you do not compute a tensor product. c = 100; n = 5; l = 10; A = rand(c, n); B = rand(c, l); C = A .* ...

13 hours ago | 0

| accepted

Quaternions with symbolic elements

Work around is use 2 x 2 (symboloc) complex matrix to do quaternion computation https://en.wikipedia.org/wiki/Quaternion#Matrix_...

13 hours ago | 0

help counting number of times a value occurs across matrix

Alternative way of counting % Random test array A = round(10 + 2 * randn(3,10)) % Count #repetitions by row [value,~,J] = ...

17 hours ago | 0

6x6 system of multivariate quadratic equations ... non-negative real solutions

Assuming the equations are x' * Ai * x + bi'*x + ci = 0 for i = 1,2, ..., N = 6. Ai are assumed to be symmetric. If not rep...

1 day ago | 0

| accepted

2D FFT Gaussian filtering exercise doesn't return what is expected

You made many short cuts and reasoning that are not right. The convolution formula you post is for continuous signal/surface, d...

2 days ago | 0

Fixing biased random number generation

% a_max .* rand(N, 1) is a product of 2 independent uniform variables, it is NOT a uniform random variable as you expect since...

3 days ago | 0

having if/else statement go to previous input

This is how I would do. It seems clearer to me. if opt == 3 opt = randi([1 2]); % randi(2) is also fine end if opt == 1 ...

3 days ago | 0

K Nested For Loops for arbitrary K

You can use this FEX if your number combinations % Q = nchoosek(1:N+K-1,K)-(0:K-1) is too large to fit into memory, e.g. for...

8 days ago | 0

K Nested For Loops for arbitrary K

No loop or no recursion is needed at all K = 4; phi_deg = -15:15; N = length(phi_deg); V = nchoosek(N+K-1,K); mat = zero...

8 days ago | 1

| accepted

Cholesky vs Eigs speed comparison?

Your test of PSD is not right. You should do: eigs(A,1, 'smallestreal') > smallpositivenumber % 'sr', 'sa' for older MATLAB EI...

11 days ago | 1

polyeig calculating few polynomial eigenvalue

I'm affraid there is no equivalent of EIGS to POLYEIG (vs EIG).

13 days ago | 0

| accepted

كيفية حذف الصف والأعمد في أمر واحد من المصفوفة

A = randi(9,5,6) rowremove = 3; colremove = 4; B = A(setdiff(1:end,rowremove),setdiff(1:end,colremove))

14 days ago | 2

Iam facing Below Issues While Compelling the model in Matlab 2021rb

-I"D:\Users\Sumanth\OCTOBER\ CFLAGS="$CFLAGS -w " It seems the second double quotes are wrongly placed

15 days ago | 0

Why are plot titles assigned differently in Windows and MacOS?

Regardless the platform, use graphic handles to be sure where the title (or any graphic object) correctly appears. As example f...

15 days ago | 1

| accepted

make the execution faster

Using ode45 is a better choice because it adapts the time step intelligently. On my laptop it lasts less the 4 seconds for tend...

16 days ago | 0

How to pass a Matlab function handle to C-Mex Code

Rather than using function handle, call MATLAB with function name using mexCallMATLAB

19 days ago | 0

App Designer-Unrecognized variables

Try this: % Button pushed function: RUNButton function RunSimu(app, event) % Get all variable names in the base workspace va...

19 days ago | 0

| accepted

MATLAB eig function giving different eigenvectors on different computers?

"In both cases the computation A*V - V*D yields a matrix with entries on the order of 1e-14, so all is well numerically in both ...

26 days ago | 1

| accepted

How to rewrite this high dimensional matrix calculation

Fully vectorized Y = reshape(X, [], 1, C); Z = reshape(Y, 1, [], C)-Y; Z = reshape(Z, [], C); Z(1:A*B+1:end,:) = Y; Z = res...

27 days ago | 1

| accepted

Is genetic algorithm far from upper bound ?

Use optimization with constraints to fix the upper bound You can provide the upper bound in ga as well

29 days ago | 0

Interpolate and plot a surface in a rotated coordinated system

Try this and see if it's OK for you load('measurement_data.mat'); % fit a plane through the data and plot xyz = [x y z]; [...

29 days ago | 0

| accepted

Check if file directory exists, else create it

mkdir(FullDirectory) rather than mkdir FullDirectory

29 days ago | 0

| accepted

scale/normalize parameter vector for optimization

An interesting idea of generic "preconditioning" of Bspline approximmation is working with Dual Bernstein basis, decribe in Lu p...

29 days ago | 0

scale/normalize parameter vector for optimization

1. In machine learning literature, I often encounter [0,1] scaling as a common technique. Would this approach be suitable for m...

29 days ago | 0

| accepted

Calculation of the moving mean for the first items

From movmean doc "M = movmean(A,k) returns an array of local k-point mean values, where each mean is calculated over a sliding ...

1 month ago | 0

Intersection of Discretized Curves

Use this file exchange https://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections This code is robust, it d...

1 month ago | 1

How can I run code just once, for multiple intervals of numbers?

Use for loop

1 month ago | 0

| accepted

How to write ASCII to byte file?

bytes = uint8([126, 129]) data = char(bytes); % Exceeds 7 bit ASCII Not sure about the encoding standards but this seems t...

1 month ago | 2

Delete a timer object in it's callback

I don't know, but I have programmed the same toys, my worlflow is like this close all; fig = figure; ax = axes('Parent', fig)...

1 month ago | 0

How to open help doc in a Window rather than browser？

https://www.mathworks.com/help/install/ug/install-documentation-on-offline-machines.html

1 month ago | 0

| accepted