回答済み
Can somebody solve this question. I've been trying for 2 hours straight. Didn't get it yet
Hint: Notice that the volume is the difference of two simpler volumes V1-V2, where V1 is the volume of revolution of sqrt(x) on...

8日 前 | 0

回答済み
Index exceeds matrix dimensions error?
Pt=( L(:,1)-L(:,2) )./L(:,3)

8日 前 | 0

| 採用済み

回答済み
Find all IDs in pointLocation for point located on boundary of polygon.
If it's a convex cloud, you can just use convhull(). If it is not convex, then you need to define what you mean by the boundary,...

8日 前 | 0

回答済み
Define a regression equation that can be recalled as a fitness function in optimization toolbox
function out = multiObjective(x) r = x(:,1); theta = x(:,2); h1 = x(:,3); h2 = x(:,4); j = 14.1456...

8日 前 | 0

回答済み
how to calculate the long axis of mesh in 3D
One possibility is to fit a cylinder or a 3D line to the surface samples. You can use cylindricalFit() or linear3dFit() availabl...

8日 前 | 0

| 採用済み

回答済み
Fit sphere into mesh which has a spherical shape
Isolate the end caps of the bone by finding the triangles in the mesh whose surface normals [nx,ny,nz] point strongly upward (nz...

8日 前 | 0

| 採用済み

回答済み
MATLAB Curve fitting with custom equation (max/min)
It is better not to use a custom equation when one is not needed. Just fit the 'sin1' model to y-k. fitobject = fit(x,y-k,'sin1...

9日 前 | 1

| 採用済み

回答済み
Calculate the convolution of signals both directly and using DFT.
The DFT only agrees with linear (not circulant) convolution when sufficient zero padding is done. It doesn't appear that you hav...

9日 前 | 0

回答済み
Scatter plot in parfor loop
Parfor workers do not have display capability, but you can gather the data in the loop and plot it after the loop.

9日 前 | 0

回答済み
How to convert cell to matrix
cell2mat should have worked A=num2cell(rand(100001,2)); whos A B=cell2mat(A); whos B

9日 前 | 0

回答済み
Function findobj does not find an object (?)
h = findobj(gcf,'Type', 'Scatter');

9日 前 | 0

回答済み
Why the amplitude of Ram-Lak filter is multiplied by 2 in iradon transform?
Perhaps it is different from what you expect because the backprojection sums only from 0 to 180 degrees. If you summed from 0 to...

9日 前 | 0

回答済み
How can i call the first point that appears in a matrix with a certain value?
A=[1 2 3; 4 5 6;7 6 9;6 4 7;9 0 10;3 4 6]; [~,firstappearance]=max(A==6)

10日 前 | 0

回答済み
achieving a weighted inpolygon function
If the cells and the study region are represented by polyshape objects, https://www.mathworks.com/help/matlab/ref/polyshape.ht...

10日 前 | 1

| 採用済み

回答済み
Remove Zeros Matrix on 3D Matrix
val = val(:,:, any(val,[1,2]) )

11日 前 | 0

| 採用済み

回答済み
Global Optimizationproblem using Global Search
In fact, the problem can also be solved with quadprog, since it is equivalent to, min -10*x(1)+x(1)^2-4*x(2)+x(2)^2 s.t. 3x(...

11日 前 | 1

回答済み
Global Optimizationproblem using Global Search
We can verify that Torsten's solution is feasible as below. Since it gives a better objective function value than your experime...

12日 前 | 1

| 採用済み

回答済み
Solve multiple non-linear equations with vector variables
But it's not difficult to solve this 2-equation system for X and Y. I thought your equations were much harder. And in fact, the...

12日 前 | 0

| 採用済み

回答済み
Counting number of digits after the decimal points
If the input is in string form, num="1.26500"; %input s= fliplr( char( extractAfter( num,'.') )) numel(s)- sum(find(s~='...

12日 前 | 0

回答済み
Counting number of digits after the decimal points
If the input is numeric, num=1.26500; s= char( extractAfter( string(num),'.') ) length(s)

12日 前 | 0

回答済み
Solve multiple non-linear equations with vector variables
A=[20,5]; B =[12,3]; XY0=ones(2); %initial guess [XY,fval]=fsolve(@(XY) Equations(XY, A,B) , XY0); X=XY(:,1), Y=X...

12日 前 | 0

回答済み
Fit ellipse to objects in image
T=regionprops('table',~BW,'MajorAxisLength','MinorAxisLength','Eccentricity'); meanEccentricity=mean(T.Eccentricity); Area...

12日 前 | 2

回答済み
Fit ellipse to objects in image
You cna use ellipticalFit(), distributed here: https://www.mathworks.com/matlabcentral/fileexchange/32108-fitting-a-conic-to-a-...

12日 前 | 0

回答済み
Performing an Operation on a Matrix Using Complex Numbers
sz=size(a); C=2*atan(a(:),a(:).'); result=reshape( exp(1j*C), [sz,sz]);

12日 前 | 1

回答済み
Performing an Operation on a Matrix Using Complex Numbers
sz=size(a); C=(a(:)-1i*a(:).'); result=reshape(C./conj(C) , [sz,sz]);

12日 前 | 1

| 採用済み

回答済み
How to extract data from 6D data?
yourMatrix(i,j,k,:,:,:)

12日 前 | 0

回答済み
How can I color all objects as the same in an image where several objects have been extracted in the form of a label matrix?
Bianrize the labels, RGB_label-label2rgb(labeled>0,___); imshow(RGB_labels);

12日 前 | 0

回答済み
Parallel pool goes idle instantly in parallel GA
It sounds like you'll need to send your code to tech support in a bug report.. As a temporary workaround, set UseVectorized to...

12日 前 | 0

| 採用済み

回答済み
FMINCON Parallel Pool goes idle after first iteration.
Does it happen only for this specific optimization problem, or for every problem? In any case, a workaround might be to set Sp...

12日 前 | 0

回答済み
How to iterate through all combinations within a FOR loop?
Here's a dynamic programming approach: roll_list = [10 12 15; 3 1 2]; part_list = [7 6 6 5 4 7 5 4 6 5]; roll_list=sortro...

13日 前 | 0

| 採用済み

もっと読み込む