Community Profile

photo

Matt J


Last seen: Today Actif depuis 2009

Professional Interests: medical image processing, optimization algorithms PLEASE NOTE: I do not read email sent through my author page. Please post questions about FEX submissions in their respective Comments section.

Statistiques

All
  • Most Accepted 2022
  • Grand Master
  • Editor's Pick
  • Personal Best Downloads Level 4
  • Most Accepted 2021
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 5
  • Knowledgeable Level 5

Afficher les badges

Content Feed

A répondu
Get indices of matching values (vectorized find function)
[~,b_reconstructed]=ismember(c,a)

environ une heure il y a | 0

A répondu
generate triangular mesh starting from the external nodes (rx3) of a circle
load V V=num2cell(V,1); [x,y,z]=deal(V{:}); trisurf(delaunay(x,y), x,y,z)

environ 5 heures il y a | 0

| A accepté

A répondu
Error in the use of fminunc function
I would try a clean re-install of Matlab (i.e., deleting all installation folders that may have been created).

environ 5 heures il y a | 0

Question


Problems with savepath in R2023b
I have just installed R2023b on two different machines. Both give the following problem, when trying to use savepath >> addpath...

environ 16 heures il y a | 2 réponses | 2

2

réponses

A répondu
Please, you can help me? Check follow error: License Manager Error -9
Change your username back to what it was.

1 jour il y a | 0

A répondu
Rotating data using griddata
You should probably just use imrotate with the loose option flag.

1 jour il y a | 0

A répondu
Change axes position in tiled layout
This File Exchange alternative gives considerable flexibility on the spacing, https://www.mathworks.com/matlabcentral/fileexcha...

1 jour il y a | 1

| A accepté

A répondu
Random points on a curve
Youc an interpolate the curve at random points using interp1.

1 jour il y a | 0

A répondu
transform infinite plane into finite circular plane
You can use patch. [a,b,c]=deal(1); %fake input data P=[1 1 1]; R=2; t=(0:359)'; V=R*[cosd(t),sind(t)]*null([a,b,c])' ...

1 jour il y a | 1

| A accepté

A répondu
Can object properties be assigned in bulk without the need for a loop statement?
Is there a vectorized approach to achieve this without the need for a loop statement? No, there isn't. Nor is there anything t...

1 jour il y a | 0

A répondu
How to solve out of memory error when constructing sparse matrix
It's a 5 GB matrix. Are you sure you have enough RAM?

1 jour il y a | 0

A répondu
quadruple summation using function
n = 100; tic; sum(sin(0:n))^4; toc

1 jour il y a | 1

A répondu
create a normal plane passing through a point P knowing the coordinates of the direction of the Normal vector to point P
a=normal(1); b=normal(2); c=normal(3); d=dot(normal,P); fimplicit3(@(x,y,z) a*x+b*y+z*c-d )

2 jours il y a | 2

| A accepté

A répondu
Is there a classdef startup/initializer method?
As one example, you can initialize a property with a class-related function like below. Various other options are discussed here...

6 jours il y a | 0

| A accepté

A répondu
How to handle cells?
I would use logical arrays instead of cells. r = 'r'; s = 's'; p = 'p'; d = "Its a Draw!"; u1 = "User1 wins!"; u2 = "User2 wins...

6 jours il y a | 0

| A accepté

A répondu
how to use varagin with parameter
Another possibility: out=definedAndVariableNumInputs(10,20,f=3) function out=definedAndVariableNumInputs(X,Y,varargin) ...

6 jours il y a | 0

A répondu
how to use varagin with parameter
Perhaps this is what you're looking for: opts=myfunc(f=3) opts=myfunc(b=5) opts=myfunc(f=3,b=5) function opts=myfunc(o...

6 jours il y a | 0

A répondu
Plotting Anonymous Function of two variables
f1 = @(x) erf(x(1))+cos(x(2)); fsurf(@(x1,x2) f1([x1,x2]) , [-5 0 -5 5])

6 jours il y a | 0

| A accepté

A répondu
Problem 1899. Convert a Cell Array into an Array
x = {'01', '56'; '234', '789'}; y=[x{:}] x={'' 'a' '1'; 'AA' 'BB' 'CC'; 'dog' 'cat' 'car'}; y=[x{:}] x={'We' 'do' ;'ll ' ...

6 jours il y a | 0

| A accepté

A répondu
how can we find the coordinates of more points besides the points automatically generated by Contour in MATLAB?
You can interpolate the points uniformly with interparc: https://www.mathworks.com/matlabcentral/fileexchange/34874-interparc

6 jours il y a | 0

Question


How to doc() a command which is overloaded by multiple toolboxes
The evaluate() command has a version in both the the Curve Fitting Toolbox and in the Optimization Toolbox. How does one use doc...

6 jours il y a | 1 réponse | 0

1

réponse

A répondu
How do I make this array index into a function of two other array indices?
Perhaps you meant to have this: for i=1:70 cx(i)=-L(i)/2*(cp(i+1)+cp(i))*sin(theta(i)); end

7 jours il y a | 0

A répondu
Draw samples using a Non-Gaussian distribution
x = randn(100,1); x(randperm(numel(x),50))

7 jours il y a | 0

A répondu
Error in plotting - indices not compatible
vpasolve is returning empty (because it found no solution), so you cannot assign it to soly3(1) >> vpasolve(subs(N1_subs_tsol3/...

7 jours il y a | 0

A répondu
how does fmincon deal with ill-conditioned problem?
It depends how badly conditioned your objective is. Most fmincon algorithms are some variation of Newton's method, which helps a...

8 jours il y a | 0

A répondu
transform the number cell so that only numbers (with or without decimals) excluding zeros are visible
You can round all of the numbers to 2 decimal places as below. This will make it so that any number that was an integer to 2 dec...

10 jours il y a | 0

A répondu
transform the number cell so that only numbers (with or without decimals) excluding zeros are visible
If your're just looking for a way to change the display format, and not the numbers themselves, I think you can only do that in ...

10 jours il y a | 0

A répondu
Solve many similar fmincon problems with a fully Vectorized Objective function and Analytical gradient + hessian
To vectorize, you must, (1) Sum the elements of f, not take its norm. (2) Vectorize your constraints and their gradien...

10 jours il y a | 0

A répondu
Creating new field names within a new structure when trying to reshape data
Your post is hard to follow, so I'm doing a bit of guessing as to what you want. Regardless, I think the data organization strat...

10 jours il y a | 1

| A accepté

Charger plus