답변 있음

Is it possible to find the line-of-sight for coarsely spaced and uneven terrain data points?

You coulduse linexline2d from this FEX post, https://www.mathworks.com/matlabcentral/fileexchange/93470-intersections-of-multi...

Is it possible to find the line-of-sight for coarsely spaced and uneven terrain data points?

You coulduse linexline2d from this FEX post, https://www.mathworks.com/matlabcentral/fileexchange/93470-intersections-of-multi...

23일 전 | 0

답변 있음

Transforming Optimization Code from Problem-Based to Solver-Based Approach in MATLAB

See prob2struct

Transforming Optimization Code from Problem-Based to Solver-Based Approach in MATLAB

See prob2struct

23일 전 | 0

답변 있음

Split matrix into N Equal Parts by rows

You can also use mat2tiles, https://www.mathworks.com/matlabcentral/fileexchange/35085-mat2tiles-divide-array-into-equal-sized-...

Split matrix into N Equal Parts by rows

You can also use mat2tiles, https://www.mathworks.com/matlabcentral/fileexchange/35085-mat2tiles-divide-array-into-equal-sized-...

23일 전 | 0

답변 있음

quadprog output: this problem is non-convex

I think you probably should report it as a bug, but a possible workaround would be to approximate the original problem with ineq...

quadprog output: this problem is non-convex

I think you probably should report it as a bug, but a possible workaround would be to approximate the original problem with ineq...

25일 전 | 0

| 수락됨

답변 있음

How to change in marker size in the global legend?

You will probably have to use legendflex from the file exchange, https://www.mathworks.com/matlabcentral/fileexchange/31092-leg...

How to change in marker size in the global legend?

You will probably have to use legendflex from the file exchange, https://www.mathworks.com/matlabcentral/fileexchange/31092-leg...

25일 전 | 1

답변 있음

How to generate vector with non-linear spacing?

a=-1; b=+1; d=1/(b-a)^2; y=d*randn(1,500); x=sort(y+(a+b)/2); stem(x,x.^0); xlim([a,b])

How to generate vector with non-linear spacing?

a=-1; b=+1; d=1/(b-a)^2; y=d*randn(1,500); x=sort(y+(a+b)/2); stem(x,x.^0); xlim([a,b])

25일 전 | 0

답변 있음

Methods of Detecting and Removing Protrusions in Image

Use bwlalphaclose from this FEX package, https://www.mathworks.com/matlabcentral/fileexchange/90762-further-tools-for-analyzing...

Methods of Detecting and Removing Protrusions in Image

Use bwlalphaclose from this FEX package, https://www.mathworks.com/matlabcentral/fileexchange/90762-further-tools-for-analyzing...

26일 전 | 0

답변 있음

liste vertex into polyhedron

See lcon2vert in this FEX download, which does not require the Optimization Toolbox, https://www.mathworks.com/matlabcentral/fi...

liste vertex into polyhedron

See lcon2vert in this FEX download, which does not require the Optimization Toolbox, https://www.mathworks.com/matlabcentral/fi...

26일 전 | 0

| 수락됨

답변 있음

How can I replace the upper off diagonal(super diagonal) and lower off diagonal(sub diagonal) of a matrix?

n=8; T=diag(rand(n,1)) diagonal=diag(T); offdiagonal=rand(n-1,1)' %desired values B=[ [offdiagonal(:);0], [0;offdiagon...

How can I replace the upper off diagonal(super diagonal) and lower off diagonal(sub diagonal) of a matrix?

n=8; T=diag(rand(n,1)) diagonal=diag(T); offdiagonal=rand(n-1,1)' %desired values B=[ [offdiagonal(:);0], [0;offdiagon...

26일 전 | 0

답변 있음

How can I replace the upper off diagonal(super diagonal) and lower off diagonal(sub diagonal) of a matrix?

n=8; T=diag(repelem(1.8,n)); T(2:2*(n+1):end)=1; T(n+1:2*(n+1):end)=1

How can I replace the upper off diagonal(super diagonal) and lower off diagonal(sub diagonal) of a matrix?

n=8; T=diag(repelem(1.8,n)); T(2:2*(n+1):end)=1; T(n+1:2*(n+1):end)=1

26일 전 | 0

답변 있음

Finding the "center" of an extended ring

load Image BW0=BW; A=bwareafilt( imfill(BW,'holes'),1); BW=imclose(A.*BW, strel('disk',3)); B=bwconvhull(~(~A|BW)); m...

Finding the "center" of an extended ring

load Image BW0=BW; A=bwareafilt( imfill(BW,'holes'),1); BW=imclose(A.*BW, strel('disk',3)); B=bwconvhull(~(~A|BW)); m...

27일 전 | 0

| 수락됨

답변 있음

How can I find the set of vertices of hexagons which are adjacent to a random point?

hex=[ 0 -1.0000 -0.8660 -0.5000 -0.8660 0.5000 0 1.0000 0.8660 0.5000 0.8660 ...

How can I find the set of vertices of hexagons which are adjacent to a random point?

hex=[ 0 -1.0000 -0.8660 -0.5000 -0.8660 0.5000 0 1.0000 0.8660 0.5000 0.8660 ...

27일 전 | 2

| 수락됨

답변 있음

How can I continue training my network from the previous state?

Just call trainnet() again, feeding it your net in its current state, rather than an untrained layer graph. You may wish to adj...

How can I continue training my network from the previous state?

Just call trainnet() again, feeding it your net in its current state, rather than an untrained layer graph. You may wish to adj...

27일 전 | 1

답변 있음

colorbar graph exceeding matrix values

You haven't attached Ft for us to examine, so we have no way to verify your claim that the data is bounded to [0,1]. Regardless,...

colorbar graph exceeding matrix values

You haven't attached Ft for us to examine, so we have no way to verify your claim that the data is bounded to [0,1]. Regardless,...

27일 전 | 0

| 수락됨

답변 있음

How to use Matlab trainnet to train a network without an explicit output layer (R2024a)

1) Is it possible to use trainnet in a network without an output layer? It is difficult to imagine that a built-in training func...

How to use Matlab trainnet to train a network without an explicit output layer (R2024a)

1) Is it possible to use trainnet in a network without an output layer? It is difficult to imagine that a built-in training func...

대략 1개월 전 | 0

답변 있음

Work Around for Convolution1DLayer

Why not just use a convolution2dLayer? A 1D input is just a special case of a 2D input.

Work Around for Convolution1DLayer

Why not just use a convolution2dLayer? A 1D input is just a special case of a 2D input.

대략 1개월 전 | 0

답변 있음

find best fit ellipse to a set of data points

Use ellipticalFit() from, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-to-fit-plot-conics-a...

find best fit ellipse to a set of data points

Use ellipticalFit() from, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-to-fit-plot-conics-a...

대략 1개월 전 | 2

| 수락됨

답변 있음

FFT of 3D array in MATLAB

Why reinvent the wheel. Why not just use the open source FFTW C/C++ library (which Matlab is based on). https://www.fftw.org/ ...

FFT of 3D array in MATLAB

Why reinvent the wheel. Why not just use the open source FFTW C/C++ library (which Matlab is based on). https://www.fftw.org/ ...

대략 1개월 전 | 0

| 수락됨

답변 있음

is it possible to see what variables and functions affecting a certain variable ?

Perhaps you are looking for matlab.codetools.requiredfilesandproducts.

is it possible to see what variables and functions affecting a certain variable ?

Perhaps you are looking for matlab.codetools.requiredfilesandproducts.

대략 1개월 전 | 0

답변 있음

trainnet gives training loss is NaN

You need to provide more information about what you did, e.g., the training code. However, I can hazard a guess. I imagine prob...

trainnet gives training loss is NaN

You need to provide more information about what you did, e.g., the training code. However, I can hazard a guess. I imagine prob...

대략 1개월 전 | 0

답변 있음

How to train Unet semantic segmentation with only one single class/label?

The value of 'numClasses' is invalid. Expected numClasses to be a scalar with value > 1 Because you have two classes (0 and 1)....

How to train Unet semantic segmentation with only one single class/label?

The value of 'numClasses' is invalid. Expected numClasses to be a scalar with value > 1 Because you have two classes (0 and 1)....

대략 1개월 전 | 0

답변 있음

Image processing - Is there any technics to remove this marks ?

A=im2gray(imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1746876/image.jpeg')); B=255+double(imcomple...

Image processing - Is there any technics to remove this marks ?

A=im2gray(imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1746876/image.jpeg')); B=255+double(imcomple...

대략 1개월 전 | 0

답변 있음

How to use OutputFcn with fitnlm

Only Optimization Toolbox solvers have an OutputFcn option. Perhaps you are thinking of lsqcurvefit, load carbig tbl =...

How to use OutputFcn with fitnlm

Only Optimization Toolbox solvers have an OutputFcn option. Perhaps you are thinking of lsqcurvefit, load carbig tbl =...

대략 1개월 전 | 0

답변 있음

3D system definition: How btaining the angle between a single axis and a plane

and eventually XY That would just be the angle between Yprime and Z, wouldn't it? Yprime=Rprime(:,2); Z=R(:,3); angle = ac...

3D system definition: How btaining the angle between a single axis and a plane

and eventually XY That would just be the angle between Yprime and Z, wouldn't it? Yprime=Rprime(:,2); Z=R(:,3); angle = ac...

대략 1개월 전 | 0

| 수락됨

답변 있음

Mean and Standard Deviation of outputs on a neural network

You have shown the code for your network, but not how you have adapted the training code, nor the error messages. So, it calls f...

Mean and Standard Deviation of outputs on a neural network

You have shown the code for your network, but not how you have adapted the training code, nor the error messages. So, it calls f...

대략 1개월 전 | 0

답변 있음

Dual problem and primal problem unbounded linear programming

%Primary Problem %coefficients of A A = [1 4; 4 5; 2 3; 3 1]; %coefficients of B b = [320 510 430 300]; %coefficients...

Dual problem and primal problem unbounded linear programming

%Primary Problem %coefficients of A A = [1 4; 4 5; 2 3; 3 1]; %coefficients of B b = [320 510 430 300]; %coefficients...

대략 1개월 전 | 0

답변 있음

how can i rescale image? standard is at the center part

Use imresize. It scales relative to the center.

how can i rescale image? standard is at the center part

Use imresize. It scales relative to the center.

대략 2개월 전 | 0

답변 있음

How can I identify and fill outliers in a 2d matrix?

You could detect and replace the outliers with missing values by doing, outlierMap = abs(yourMatrix-medfilt2(yourMatrix,[M,N]))...

How can I identify and fill outliers in a 2d matrix?

You could detect and replace the outliers with missing values by doing, outlierMap = abs(yourMatrix-medfilt2(yourMatrix,[M,N]))...

대략 2개월 전 | 1

| 수락됨

답변 있음

How can I calibrate a fixed camera to obtain accurate measurements of objects at different distances, despite height variations and pixel distortion?

You cannot determine the size of the object from a single camera without knowing its distance from the camera. You would need tw...

How can I calibrate a fixed camera to obtain accurate measurements of objects at different distances, despite height variations and pixel distortion?

You cannot determine the size of the object from a single camera without knowing its distance from the camera. You would need tw...

대략 2개월 전 | 0

| 수락됨