Answered
Identify coordinates of nodes in a matrix above/below the coordinates of a plane
Yes, dot(normal,point)>0 %above the plane (the direction the normal is pointing) dot(normal,point)<0 %below the plane

2 years ago | 0

| accepted

Answered
how to calculate scalar with matrix
Don't see any reason why you'd have to reinvent eigendecomposition: lambda=eig([-30,-20; -20 -40])

2 years ago | 0

Submitted


Object-oriented tools to fit/plot conics and quadrics
A tool set for fitting and/or plotting various conics and quadric surfaces, e.g., ellipses, cylinders, spheres, planes, cones, a...

2 years ago | 10 downloads |

5.0 / 5
Thumbnail

Answered
vectorization of a for loop with an if else statement and running over 4 indices
Here's a vectorized solution. Note that the only reason the permute() operation (which is expensive) is needed is because your c...

2 years ago | 0

| accepted

Answered
Color quadrant of ellipse
Using this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-to-fit-plot-conics-an...

2 years ago | 0

Answered
Jumps in roots finding solutions
I think you'll see continuity if you sort the roots.

2 years ago | 0

| accepted

Answered
Speed performance between class, struct and local variable
Well Case 1 and Case 3 have more indexing operations, so it makes sense that that overhead should dominate assuming the + and .*...

2 years ago | 0

| accepted

Answered
What formula for r-squared does fitlm use in the weighted linear regression case?
It is as described here, https://www.mathworks.com/help/stats/coefficient-of-determination-r-squared.html

2 years ago | 0

Answered
How can I find the radius of this object, preferably at multiple x,y points for a consistent output?
You can use circularFit() from this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-t...

2 years ago | 1

| accepted

Answered
Follow up to Previous Question
Just call the function, and omit a semicolon to see what its output is. However, your functions will not give nontrivial results...

2 years ago | 0

| accepted

Answered
Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element
if ~isempty(NextConnection) NextConnection.packet_allocated_bandwidth = 200; else ...something els...

2 years ago | 0

| accepted

Answered
Plane plotted with fimplicit3 fails to render
MathWorks Tech Support has classified this as a bug (Case #06788114)

2 years ago | 0

| accepted

Answered
How I can count the number lines falling inside the green region
green=polyshape(vertcat(M.ncst)); Lines=findobj(gca,'Type','line'); clear insideGreen for i=numel(Lines):-1:1 ...

2 years ago | 0

Answered
How to update Matlab?
You can download and install R2023b without un-installing R2022b. The two will co-exist as separate apps on your computer.

2 years ago | 0

Answered
Customized 3D vector representation
The graphical element you describe can be created from a combination of a cylinder (the shaft of the arrow), a cone (the head of...

2 years ago | 0

| accepted

Answered
Generating an alpha shape with a predetermined connectivity list
No, it's not possible. For a given set of points, the connectivity lists of its alpha-shapes are a 1D function of the alpha radi...

2 years ago | 0

Answered
Adoption of Name=Value in Function Calls what is best practice?
The only consideration I can think of is if you might need to run your code on an older version of Matlab that predates the new ...

2 years ago | 0

Answered
Reshaping is causing memory problem
Don't make long sparse row vectors, as these do consume lots of memory. Work with column vectors instead: K_flatten = K_i(:);

2 years ago | 1

| accepted

Question


Plane plotted with fimplicit3 fails to render
load data E C ax planefun=@(x,y,z) E(1)*x+E(2)*y+E(3)*z+E(4); In the plot below, I successfully plot a point C and try to supe...

2 years ago | 2 answers | 1

2

answers

Answered
Create a node in the space between two nodes (A and B) and following the direction normal to a node (N)
I might be misinterpreting your question somehow, but from your figure illustration, it doesn't make sense that you would be su...

2 years ago | 0

| accepted

Answered
Linear Equation Solving, I am getting the wrong output
Your equations system is singular, so no surprise that there is more than one solution. [A,b]=equationsToMatrix([EQN_1;EQN_2]) ...

2 years ago | 0

Answered
Plotting multiple 2D alphaShape polygons with different z-values
th = (pi/12:pi/12:2*pi)'; x1 = [reshape(cos(th)*(1:5), numel(cos(th)*(1:5)),1); 0]; y1 = [reshape(sin(th)*(1:5), numel(sin(th)...

2 years ago | 0

| accepted

Answered
Differences in results of calculating the mean value
However, now I'm gonna need to keep the variables in 2D format Her's one way you could have done that without introducing NaNs:...

2 years ago | 0

| accepted

Answered
assume can't constrain vpasolve
There doesn't appear to be any good reason for you to be using sym variables. Your code doesn't seem to make use of any other S...

2 years ago | 1

Answered
how to velocize it (avoid loop is possible)
E=[0 5 6 9 2;0 0 1 3 1;0 5 4 2 4]'; [~,I]=max(logical(E),[],1); filtro=(1:height(E))'>I

2 years ago | 0

| accepted

Answered
Plot a set of points in a standard simplex
For 2D: p=nsidedpoly(3); c=rand(10,3); c=c./sum(c,2); v=num2cell(c*p.Vertices,1); %"probability vectors" plot(p); axis...

2 years ago | 3

Answered
Set tick in Axes plane
That's pretty fancy. But no, I'm pretty sure Matlab doesn't have it.

2 years ago | 0

Answered
Faster Image Processing?
[m,n,p]=size(Image); N=cellfun(@numel, pointer(:)); K=cell2mat( cellfun(@(q)q(:)', page(:),'uni',0)); %*ConstantMultipli...

2 years ago | 0

Answered
Reduce the objective function value in fmicon
For this objective function value is coming in the order of e+10 You seem to think this value is large and far from the optimum...

2 years ago | 1

Load more