Réponse apportée
Overloading subsrefs for class and using it from another method in the same class
As an alternative to subsref or set/get, you could look at RedefinesDot, but I find that the newer, modular indexing can have su...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Overloading subsrefs for class and using it from another method in the same class
No, subsref is only called by indexing operations invoked outside the classdef. This design decision was to avoid triggering rec...

plus de 2 ans il y a | 0

Réponse apportée
Passing Structure through fminsearch
If p is the unknown parameter vector, it must be passed separately from the fixed parameters, S.PHI=... S.TAU=... [p...

plus de 2 ans il y a | 0

| A accepté

A soumis


ezplane
Plot an arbitrary 3D plane given its equation.

plus de 2 ans il y a | 2 téléchargements |

0.0 / 5

Réponse apportée
multiple 3D plane plotting
Using this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/161351-ezplane planedip = 30; planeazim = 12...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Why do i get "Error using vertcat Dimensions of arrays being concatenated are not consistent" while using fmincon to do nonlinear optimization
However, as i searched, it seems appear for error in matrix calculation. there really isnt matrix calcualtion in my codes Certa...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Is it possible to make a video play through of points showing yaw, pitch, and roll values?
Yes, you can use VideoWriter.

plus de 2 ans il y a | 0

Réponse apportée
Volume of union and volume of intersection of convex hulls?
Use intersectionHull from this FEX download to find the intersection, https://www.mathworks.com/matlabcentral/fileexchange/3089...

plus de 2 ans il y a | 0

Réponse apportée
How can I define a custom loss function using trainnet?
If you have multichannel output, the loss function will give you an SSIM per channel, e..g, loss = @(Y,targets) 1-ssim(Y,target...

plus de 2 ans il y a | 0

Réponse apportée
MATLAB code of intersection
f=@(z) z(:,1:2)./z(:,3); t=(0:2:30)'; e=ones(size(t)); D=[cosd(t), sind(t), 0*e]; L1=cross(e*[0 0 1], D); L2=cross(e*...

plus de 2 ans il y a | 1

Réponse apportée
Constructing a 3D matrix out of single column coordinate data with a corresponding value
Let's call your Nx4 matrix XYZV. xyzv=num2cell(sortrows(XYZV,[3,2,1]) ,1); [I,J,K,V] =deal(xyzv{:}); I=findgroups(I); J=...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Constructing a 3D matrix out of single column coordinate data with a corresponding value
If you are trying to query velocity values at arbitrary 3D locations, do not use a 3D array. Instead, use scatteredInterpolant o...

plus de 2 ans il y a | 0

Réponse apportée
How to close a figure made in one function, from a different function
How do I define ax in function B so that I can close Plot A You don't. You create ax in function A (it is obtained from the pl...

plus de 2 ans il y a | 0

| A accepté

A soumis


Grids of tiled chart layouts
A tool for simplifying the creation of nested tiled layouts

plus de 2 ans il y a | 1 téléchargement |

0.0 / 5

Réponse apportée
Merging files based on location similarity use polyshape and overlaps
The variable naming in your posted code doesn't reflect the terminology in your text explanation, making it hard to interpret. T...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Multiple ylabels for tiledlayout
One approach would be to create a 2x1 tiledlayout where inside each tile you nest another tiledlayout of dimension 2x6. You can ...

plus de 2 ans il y a | 0

Réponse apportée
lsqnonlin (lsqcurvefit , fmincon) does not change the variables in an optimization process to find the best fit
Consider the various recommendations at, https://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordinary-differenti...

plus de 2 ans il y a | 1

Réponse apportée
Loop through list of vectors (ie, the rows of a matrix), applying same "simple" function to each one, on GPU? Should I use arrayfun somehow?
Well whether you use the GPU or not, you don't have to loop across measurements. The operations in your example are trivial to v...

plus de 2 ans il y a | 0

| A accepté

Question


Hovering in debug mode triggers a jump into get.property() methods
I have been experiencing an aggravating thing for the past several Matlab releases and for which I am looking for troubleshootin...

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

1

réponse

Réponse apportée
Delete Negative Duplicates from Array
X=randi(9,3,4); X=[X,-X(:,1:2)] map=triu(squeeze(~any(X+reshape(X,3,1,[]),1))); [I,J]=find(map); X(:,[I;J])=[]

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Area under the plot
bwarea(I_rev)

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
fill color between two curve
prf=3500; NumberOfAmbigiousArea=30; m=(1:NumberOfAmbigiousArea); rx = zeros(1,2*length(m)); %%%Distance of Amb Area p=prf...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
pulling non-consistent arrays out of a structure
Here's a way you can extract and concatenate all the x,y data. However, I don't understand what you are trying to do with the m...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to assign outputs of a function to an anonymous function in order to optimize with lsqcurvefit
% test data xdata = ... [0.9 1.5 13.8 19.8 24.1 28.2 35.2 60.3 74.6 81.3]; ydata = ... [455.2 428.6 124.1 67.3 43.2 28.1 1...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Converting FEA data as table into n-D gridded-data Array for Use with 'griddedInterpolant'
x=unique(t{:,1}); nx=numel(x); y=unique(t{:,2}); ny=numel(y); z=unique(t{:,3}); nz=numel(z); v=permute( reshape(t{:,4},[ny,...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
LU decomposition with 5 output arguments
dA=decomposition(A,'ldl'); x=dA\b;

plus de 2 ans il y a | 1

Réponse apportée
How to plot 3D image in MATLAB?
volshow(Image.*(Image>=threshold)) There are also a number of 3D viewers offered on the File Exchange.

plus de 2 ans il y a | 0

Réponse apportée
Issue with finding circle and it's center in the image
Your posted code cannot be run by us and tested because input data and your homemade imgshow() function are not provided. Howeve...

plus de 2 ans il y a | 0

Réponse apportée
Matrixes not multiplying correctly using for loops
[n,w]=size(a); [h,m]=size(b); assert(w==h,'Inner dimensions incompatible') c=zeros(n,m); for i = 1 : n for j = 1 : m...

plus de 2 ans il y a | 1

Réponse apportée
How to plot a large number of rectangles from a matrix
I don't really see why you need to find bounding rectangles to do what you describe. You could just represent the regions as pol...

plus de 2 ans il y a | 0

| A accepté

Charger plus