Réponse apportée
How to get a smooth boundary between clusters?
Once you've extracted the boundary points, you could use sgolayfilt to smooth them.

plus de 2 ans il y a | 1

Réponse apportée
Computation of the distance of the points from the interpolation curve?
dist = pdist([flowrate y], 'euclidean','Smallest',1);

plus de 2 ans il y a | 1

Réponse apportée
Which algorithm does SVD function take?
The SVD algorithm is not disclosed by MathWorks, but even if you could be sure the same algorithms were used by both Matlab and ...

plus de 2 ans il y a | 2

| A accepté

Réponse apportée
shade the area between curves
% Define the data as column vectors x1 = [0.001 0.055178 0.06313 0.071457 0.072486 0.089794 0.099338 0.099518 0.107103 0.118855...

plus de 2 ans il y a | 0

Question


How to detect whether a figure is created by uifigure()
I have the following in my startup.m file, set(groot,'defaultFigureCreateFcn',@(fig, ~)addToolbarExplorationButtons(fig)); ...

plus de 2 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
Can I upload the results of my work with a home license to GitHub?
I don't think any of the licenses restrict your ability to share your code, with the obvious caveat that if you try to sell it ...

plus de 2 ans il y a | 0

Réponse apportée
For matrix A you cannot do: A.^2(:)
You cannot apply ()-indexing to mathematical expressions, function calls, or literal constants, only to variables. So, in your c...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Piecewise Function (Toolbox Doesn't Work)
Why bother with symbolic math? Why not just plot as below? n=linspace(-2,5); f = @(n) (3*exp(-n).*sin(pi*n)).*(n>=0); plot(...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to add colorbar using image data
I would guess maybe, colormap parula However, we really need to see the corresponding grayscale image to make an informed choi...

plus de 2 ans il y a | 0

Réponse apportée
How to remove surface segments produced with trisurf (based on delaunyTriangulation)?
You could use faceNormal to find which facet normals are sufficiently aligned with the z axes as to consider them part of the to...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
What is the Distinction Between Answers and Discussions?
Answers is intended for seeking solutions to difficulties encountered by the OP in using Matlab. Discussions is not for solutio...

plus de 2 ans il y a | 2

Réponse apportée
How can I maximize a tiled layout in a live script?
TL=tiledlayout(3,1); Fig2=TL.Parent;

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Hi, I am plotting surfaces and I want to connect them with interpolation, but I don't know how.
% Define the data as column vectors x1 = [0.001 0.055178 0.06313 0.071457 0.072486 0.089794 0.099338 0.099518 0.107103 0.1188...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Why does a griddedInterpolant use twice as much memory as the array of values that it's interpolating between?
I suspect that griddedInterpolant does not really consume twice what V consumes. I think it is just a quirk of whos(). Remember ...

plus de 2 ans il y a | 0

| A accepté

Question


Assign a customized image to an icon on the Quick Access Toolbar
I have created two Quick Access Toolbar buttons that let me toggle between two desired Matlab Desktop layouts, one which arrange...

plus de 2 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
When using the "fit" command with a startpoint vector, matlab will sometimes not fit the data and will instead just assume my startpoint is the best fit
Numerical problems are created when your T and X data are very different orders of magnitude. Change the units of your X to some...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
save images inside a for loop at uneven intervals
If you don't know in advance which and how many loop iterations you'll be storing, it would be best to accumulate them in a cell...

plus de 2 ans il y a | 0

Réponse apportée
save images inside a for loop at uneven intervals
One way, Img=nan(M,N,a); Isubset=[10 47, 150,...,a] for i = 1:a B = some process % my image if ismember...

plus de 2 ans il y a | 0

Réponse apportée
Logic array changing when saving then loading .mat file
As @the cyclist says, we really need to be given steps to reproduce this. The only thing I can guess is that maybe you tried to ...

plus de 2 ans il y a | 0

Réponse apportée
Divide matrix in subgroups based on rows and columns
every 256 rows should be saved into a new variable (so in total 200 variables) I assume you mean you want them split up into ce...

plus de 2 ans il y a | 0

Réponse apportée
How to get input values for a known output value.
One possibility might be to use fmincon to search for a minimum norm solution, fun=@(Xp) norm(Xp).^2; nonlcon=@(Xp) deal([],...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Convert Quaternion to Euler angle extrinsically
Intrinsic euler angles can be converted to extrinsic euler angles just be reversing their order. EDIT: In other words, a Z-Y'-X...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Asking for Guidance to Weighted-Sum Multiobjective Optimization
Because your problems have such a simple quadratic form, I might just do a sweep over w1,w2 using quadprog. w1=linspace(0,1,60)...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to find the coordinate of the point on (180) contour line when y(max)?
You could do the calculus, or use the Symbolic toolbox to help you. syms x y z(x,y) z=1000*(x.*exp(-x.^2-y.^1)); G=gradient...

plus de 2 ans il y a | 0

Réponse apportée
How to calculate the area between X-Axis, Y-Axis and the (60) contour line?
Using this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/74010-getcontourlinecoordinates x = 1:0.2:2; y...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How can i select variables which has same number at the end
You shouldn't have variables named that way. You should have a cell array T_Right_F{i}, and times{i} and should use indexing ...

plus de 2 ans il y a | 0

Réponse apportée
can I adjusting one vector according to another vector for plotting?
Given x,y for fitting, I=~isnan(x)&~isnan(y); p=polyfit(x(I), y(I),1)

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Understanding higher dimension in MATLAB
In general, a=rand(M,N,P,Q) means that a will return a number when you give it 4 subscripts a(i,j,k,l) for any combination of ...

plus de 2 ans il y a | 0

Question


How to return a DAGNetwork to an editable state in deepNetworkDesigner?
I started with a layer graph lgraph and opened it in a deepNetworkDesigner, deepNetworkDesigner( lgraph ) The properties of th...

plus de 2 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
Using accumarray to sum all values associated with a given node
edges = [1 2; 2 3; 3 1; 2 4; 4 5; 4 1]; data=[0.276 0.679 0.655 0.162 0.118 0.333]; m=max(edges(:)); A=accumarray(...

plus de 2 ans il y a | 0

Charger plus