Réponse apportée
deleting all rows from column 1 with duplicates in column 2.
setdiff(Column1,Column2)

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Correct homograph or projective transformation of an inclined image
You need 4 non-colinear landmarks in the image, for which you know the real-world coordinates. Then you can use fitgeotrans or f...

environ 3 ans il y a | 0

Réponse apportée
i want to get adjacency matrix of a network
Easier: function adj_matrix = generate_adjacency_matrix(n, p) adj_matrix=triu(rand(n)<p,1); adj_matrix=adj_matrix+a...

environ 3 ans il y a | 0

Réponse apportée
Flipping the elements of a vector
First of all, I hope it is clear that you would never really flip a vector using either of the functions you've created. You wou...

environ 3 ans il y a | 0

Réponse apportée
Edge and corner detection using Hough Transform
Because you are detecting edges/corners of a simple convex polygon, I would recommend downloading pgonCorners, https://www.math...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to extract matrix elements corresponding to a logical matrix?
[I,J]=find(A==2); Q=A(min(I):max(I), min(J):max(J));

environ 3 ans il y a | 1

Réponse apportée
How to extract matrix elements corresponding to a logical matrix?
P=(A==2); Q=A(any(P,2), any(P,1))

environ 3 ans il y a | 1

| A accepté

Réponse apportée
how to plot 3d oval shape with 81 nodes
An "oval" is a loose term. If you mean an ellipsoid, then you could use this FEX download, https://www.mathworks.com/matlabcen...

environ 3 ans il y a | 0

Réponse apportée
Efficiently moving values in a 3-dimensional array
It will be much more efficient if you use the data ordering my_array = rand(n_columns,n_rows, n_populations) I will assume you'...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Efficient summing of parts of an array
I would recomend that you maintain the 4D array in ndSparse form instead, https://www.mathworks.com/matlabcentral/fileexchange/...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Angle between a vector and xy, xz, and yz planes
P1=[12,14,78]; Angles = 90 - acosd(normalize(flip(P1),'n'))

environ 3 ans il y a | 2

Réponse apportée
Indexing in nested loops x 3
You are using '==' in several places in your code. When you do so, you must remember the limitations of floating point math, 0....

environ 3 ans il y a | 0

| A accepté

Réponse apportée
find duplicated rows in matlab without for loop
[~,I]=unique(x,'rows'); locations=setdiff(1:height(x),I) %locations of duplicate rows

environ 3 ans il y a | 0

| A accepté

Réponse apportée
While using fit function, how to make sure the generated fit is only of the range of data points ?
A fit does not have an inherent "range". Once the fit is computed, you can plot it over any range of x values that you wish, e.g...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Get separate index from a column with separate conditions
Remember, you are in a world of finite precision computers... ftol=@(t) abs(TIME-t)<smallnumber; %compare to within a tole...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Include all possible combinations in loop?
%% 'ConcreteData' (matrix 1030x8) R2_all = (value1,value2,value3,value4,value5,value6,value7,value8) %%pre-defined values exit...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How can I turn xyz position data with a hole into a closed surface to do more sophisticated lighting and transparency settings?
and my best attempt at a surface using boundary() You could try alphaShape instead. Choose the alpha radius to be slightly larg...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Issue with trainNetwork() function
I am trying to interpret what and how this darker blue field of the training plots means, The light blue line measures accuracy...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to input 2D array data for Deep learing toolbox model, not image file
Currently, the data is in CSV format, but I can convert it into a suitable 2D array. An imageDataStore has a ReadFcn property ...

environ 3 ans il y a | 0

Réponse apportée
Combine .mat files with 1x1 struct with 11 fields (tables)
Files=compose("eCRF%.3d", (1:200)); S = arrayfun( @(z)load(z).CRF, Files ); for f=string(fieldnames(S))' w...

environ 3 ans il y a | 0

Réponse apportée
transform an empty matrix '0x0 double' into a matrix '0x1 uint8'
x=zeros(0,0); y=uint8( reshape(x,0,1) ); whos x y

environ 3 ans il y a | 1

Réponse apportée
How can i find inside area of the geometry (2d) ??
Area = polyarea([x1;x2],[y1;y2])

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to fit an equation (catenary equation in 2D) to a 3D dataset (experimental data of a catenary curve in 3D) ?
In the Examples tab of this FEX page, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for-fitt...

environ 3 ans il y a | 1

Réponse apportée
Uable to call the solutions in a system of linear equation
clear; a = sym('a',[1 5]) b = sym('b',[1 5]) ... Sol0 = vpa(S.b1) Sol1 = vpa(S.b2) Sol2 = vpa(S.b3) Sol3 = vpa(S....

environ 3 ans il y a | 0

Réponse apportée
Calculating the sum of squared within cluster distances
The method you've posted is highly inefficient. You should just do, Dk=2*width(cluster)*(norm(cluster-mean(cluster,2),'fro')^2 ...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to sum two cells element by element?
One way, A={1,2}, B={10,20}, C=cellfun(@plus, A,B,'uni',0)

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Nlinfit error (jacobian's column are zero)
The best trouble shooting approach would be to first obtain the Jacobian at the solution by calling nlinfit with more output arg...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How do I prompt user to re-input value if first attempt is incorrect?
Something like this, perhaps? exit=false; msg='Please enter an R^2 value for Cement: ' while ~exit data = str2double( i...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Simultaneously fitting two non-linear equations with shared model coefficients
Since the error message is complaining about the initial point, you should check the value of modelfunc() at the initial point. ...

environ 3 ans il y a | 0

Réponse apportée
How do I locate the most repeated elements in an array/vector?
Using this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetition...

environ 3 ans il y a | 0

Charger plus