답변 있음
app class properties check
I imagine that you could define your own property validation function, https://www.mathworks.com/help/matlab/matlab_oop/propert...

2년 초과 전 | 1

답변 있음
Using Linear indicies to create new image
stats=regionprops(BW,'PixelIdxList'); Z0=false(size(BW)); for i=1:numel(stats) Z=Z0; Z(stats(i).PixelIdxLi...

2년 초과 전 | 0

답변 있음
How to extract all values along the third axis of a 3d-array using a logical 2d-array?
a = rand(10,10); a(5,5) = 10; b = a+rand(1,1,1000); br=reshape(b,[],size(b,3)); c = br(a == 10,:)

2년 초과 전 | 2

답변 있음
How can I graph these two equations in matlab?
One way, f =@(y) (y-4).*(2*y-y.^2); fplot(f); xlabel y; ylabel f(y) and similarly with the other function.

2년 초과 전 | 1

답변 있음
Singular value decomposition, Cant get the final results
Since you are now on a more powerful computer with more RAM, perhaps you should also try doing the SVD without tall arrays. Re...

2년 초과 전 | 0

| 수락됨

답변 있음
Common legend for each row of tiled layout
I could do nested tiled layouts, but that seems very cumbersome, especially when I have many more rows. Why? %% Make Layout Sk...

2년 초과 전 | 1

| 수락됨

답변 있음
is there a way to perform this task w/o using loops?
There are ways to do it without loops, but doing it without loops will be of no benefit to you. It will take more lines of code,...

2년 초과 전 | 1

답변 있음
Draw angled ellipses around clusters on PCA plot
Using polyshapes: ellipse=rotate( scale(nsidedpoly(1000),[2,1]) ,30); plot(ellipse)

2년 초과 전 | 0

답변 있음
Draw angled ellipses around clusters on PCA plot
See also elliipticalFit from the FEX downloadable, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-t...

2년 초과 전 | 0

답변 있음
How can I stabilize the matrix left division (i.e. "\")?
You cannot. You must regularize the problem somehow and make the matrix non-singular.

2년 초과 전 | 0

답변 있음
Solving a quadratic optimization problem subjected to linear constraints
You can use lsqnonneg, xi=[0, 0.25, 0.5, 1, 1.2, 1.8, 2]'; fi= [2, 0.8, 0.5, 0.1, 1, 0.5, 1]'; phi=@(r) max(0, 1 - r).^4....

2년 초과 전 | 0

| 수락됨

답변 있음
Simple Indexing problem when creating a matrix
n=5; A=[0 60 120 180 240 300 360]; A=A+360*(0:n-1)'

2년 초과 전 | 0

| 수락됨

답변 있음
how to project a contour along a surface plane?
This looks applicable: https://www.mathworks.com/matlabcentral/fileexchange/8589-contourz?s_tid=srchtitle

2년 초과 전 | 0

답변 있음
Find function misbehaves when Indexing into array
Perhaps this is what you meant, LogicArray = x < Tolerance; LogicArray(1:4)=false; FindIndex = find(LogicArray,1,'first')...

2년 초과 전 | 1

| 수락됨

답변 있음
fmincon optimization: is the first order optimality very sensititve to changes in the step tolerance?
So given the results I show, can we qualititatively say that the objective is likely to be very flat at the solution? Or somethi...

2년 초과 전 | 0

| 수락됨

답변 있음
optimize vector by fminimax
if with my first input i have this vector (output) (1 2 5 6 9 5) and with next input i have this one (1 2 9 6 9 1) as you can ...

2년 초과 전 | 0

| 수락됨

답변 있음
How to get the distance references of geometry and curvature of the object?
I was able to do it with the help of some FEX downloads: https://www.mathworks.com/matlabcentral/fileexchange/90762-further-too...

2년 초과 전 | 0

답변 있음
Indexing matrix with multiplication
No. You can easily see they are not the same by comparing them yourself: T=randi(30,5) mask=T>20; T(mask) T.*mask

2년 초과 전 | 1

답변 있음
Access MinFeretCoordinates data in regionprop table
For example, stats{1,'MinFeretCoordinates'} stats{2,'MinFeretCoordinates'} stats{3,'MinFeretCoordinates'}

2년 초과 전 | 0

| 수락됨

답변 있음
Complex Image Processing with closed contour
So, you have an image like this, load Image figure; imshow(Image) and you just want to keep the central part? Then threshol...

2년 초과 전 | 0

| 수락됨

답변 있음
Inserting zeros into another array at values in the second array
A = [8 2 3 5 5 6 7 8 9]; B = [1 3 2 3]; F=nan(1,numel(A)+numel(B)); F(cumsum(B)+(1:numel(B)) )=0; F(isnan(F))=A

2년 초과 전 | 1

답변 있음
How to Remove Tail from Segmented Circle
This uses bwlalphaclose from this FEX download https://www.mathworks.com/matlabcentral/fileexchange/90762-further-tools-for-ana...

2년 초과 전 | 1

| 수락됨

답변 있음
How to Remove Tail from Segmented Circle
Here is a similar tail-removal problem: https://www.mathworks.com/matlabcentral/answers/2035444-poor-results-for-neural-network...

2년 초과 전 | 0

답변 있음
How to calculate the Jaccard Index of two sets of points (x,y,z)
data1 = table2array(readtable('100 points.xlsx')); data2 = table2array(readtable('69296 points.xlsx')); jaccardIndex = heigh...

2년 초과 전 | 0

| 수락됨

답변 있음
Identifying straight line & intersection with the curve from the binary image
load BWimage C=bwareafilt(BW&~imopen(BW,ones(1,8)),1); [I,J]=find(C); x=mean(J); y=max(I); %intersection coordinates ...

2년 초과 전 | 1

답변 있음
Do sfit and cfit objects carry the input x,y,z data? If not, why do they consume so much memory?
Never mind. I see now that the memory consumption is on ly 3.3KB, not MB. And I see from the test below that the data size does ...

2년 초과 전 | 0

| 수락됨

답변 있음
Use reshape to isolate elements of kron product
You can use blkReshape from this FEX download https://www.mathworks.com/matlabcentral/fileexchange/115340-block-transposition-p...

2년 초과 전 | 0

| 수락됨

답변 있음
Compute sensitivity coefficient from numerical gradient
I have no background in R. However, if you are trying to take the numerical gradient of a function, there is no native Matlab fu...

2년 초과 전 | 0

답변 있음
Unable to perform assignment because the left and right sides have a different number of elements.
Undoubtedly, it is because (k1v +k2v)*dt/2 is a vector, whereas your code pretends that it is a scalar. You should stop the code...

2년 초과 전 | 0

답변 있음
Find zeropoints with interpolation
x = linspace(0, 30, 100); y = 80*sin(2*pi/5*x); xq=linspace(min(x),max(x),numel(x)*1000); yq= interp1(x,y,xq,'cubic'); cro...

2년 초과 전 | 0

| 수락됨

더 보기