답변 있음
generate new coordinates (starting from initial coordinates) that are arranged outwards (by a distance H) and on the same plane
Project the points into a 2D coordinate system on the plane. Then use polyshape. Then project back to 3D. load trace H=0.5; ...

2년 초과 전 | 1

답변 있음
Why is accuracy absent in training progress plot?
Probably because the examples in the docs are for trainNetwork, not trainSOLOV2.

2년 초과 전 | 0

답변 있음
How to test if equation in .p file is linear.
Well, there's no test that will verify linearity globally (for all inputs), but you can select random inputs and test the applic...

2년 초과 전 | 0

답변 있음
Error using trainNetwork (line 184) The training sequences are of feature dimension 1 792 but the input layer expects sequences of feature dimension 1.
fn=@(z) reshape( num2cell(permute(z,[1,3,2]),2) ,[],1); X_train=fn(X_train); y_train=fn(y_train); X_test=fn(X_test); y_te...

2년 초과 전 | 1

답변 있음
Linprogr in Matlab not finding a solution when a solution exists
The problem seems to be that the inequality constrained region has barely any intersection with the equality constrained region....

2년 초과 전 | 0

답변 있음
Problems with savepath in R2023b
Tech Support advised running Matlab "As Administrator" and this did solve the problem.

2년 초과 전 | 1

| 수락됨

답변 있음
Get indices of matching values (vectorized find function)
[~,b_reconstructed]=ismember(c,a)

2년 초과 전 | 0

답변 있음
generate triangular mesh starting from the external nodes (rx3) of a circle
load V V=num2cell(V,1); [x,y,z]=deal(V{:}); trisurf(delaunay(x,y), x,y,z)

2년 초과 전 | 0

| 수락됨

답변 있음
Error in the use of fminunc function
I would try a clean re-install of Matlab (i.e., deleting all installation folders that may have been created).

2년 초과 전 | 0

질문


Problems with savepath in R2023b
I have just installed R2023b on two different machines. Both give the following problem, when trying to use savepath >> addpath...

2년 초과 전 | 답변 수: 3 | 7

3

답변

답변 있음
License Manager Error -9
Change your username back to what it was.

2년 초과 전 | 0

답변 있음
Rotating data using griddata
You should probably just use imrotate with the loose option flag.

2년 초과 전 | 0

답변 있음
Change axes position in tiled layout
This File Exchange alternative gives considerable flexibility on the spacing, https://www.mathworks.com/matlabcentral/fileexcha...

2년 초과 전 | 1

| 수락됨

답변 있음
Random points on a curve
Youc an interpolate the curve at random points using interp1.

2년 초과 전 | 0

답변 있음
transform infinite plane into finite circular plane
You can use patch. [a,b,c]=deal(1); %fake input data P=[1 1 1]; R=2; t=(0:359)'; V=R*[cosd(t),sind(t)]*null([a,b,c])' ...

2년 초과 전 | 2

| 수락됨

답변 있음
Can object properties be assigned in bulk without the need for a loop statement?
Is there a vectorized approach to achieve this without the need for a loop statement? No, there isn't. Nor is there anything t...

2년 초과 전 | 0

답변 있음
How to solve out of memory error when constructing sparse matrix
It's a 5 GB matrix. Are you sure you have enough RAM?

2년 초과 전 | 0

답변 있음
quadruple summation using function
n = 100; tic; sum(sin(0:n))^4; toc

2년 초과 전 | 1

답변 있음
create a normal plane passing through a point P knowing the coordinates of the direction of the Normal vector to point P
a=normal(1); b=normal(2); c=normal(3); d=dot(normal,P); fimplicit3(@(x,y,z) a*x+b*y+z*c-d )

2년 초과 전 | 2

| 수락됨

답변 있음
Is there a classdef startup/initializer method?
As one example, you can initialize a property with a class-related function like below. Various other options are discussed here...

2년 초과 전 | 0

| 수락됨

답변 있음
How to handle cells?
I would use logical arrays instead of cells. r = 'r'; s = 's'; p = 'p'; d = "Its a Draw!"; u1 = "User1 wins!"; u2 = "User2 wins...

2년 초과 전 | 0

| 수락됨

답변 있음
how to use varagin with parameter
Another possibility: out=definedAndVariableNumInputs(10,20,f=3) function out=definedAndVariableNumInputs(X,Y,varargin) ...

2년 초과 전 | 0

답변 있음
how to use varagin with parameter
Perhaps this is what you're looking for: opts=myfunc(f=3) opts=myfunc(b=5) opts=myfunc(f=3,b=5) function opts=myfunc(o...

2년 초과 전 | 0

답변 있음
Plotting Anonymous Function of two variables
f1 = @(x) erf(x(1))+cos(x(2)); fsurf(@(x1,x2) f1([x1,x2]) , [-5 0 -5 5])

2년 초과 전 | 0

| 수락됨

답변 있음
Problem 1899. Convert a Cell Array into an Array
x = {'01', '56'; '234', '789'}; y=[x{:}] x={'' 'a' '1'; 'AA' 'BB' 'CC'; 'dog' 'cat' 'car'}; y=[x{:}] x={'We' 'do' ;'ll ' ...

2년 초과 전 | 0

| 수락됨

답변 있음
how can we find the coordinates of more points besides the points automatically generated by Contour in MATLAB?
You can interpolate the points uniformly with interparc: https://www.mathworks.com/matlabcentral/fileexchange/34874-interparc

2년 초과 전 | 0

질문


How to doc() a command which is overloaded by multiple toolboxes
The evaluate() command has a version in both the the Curve Fitting Toolbox and in the Optimization Toolbox. How does one use doc...

2년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
How do I make this array index into a function of two other array indices?
Perhaps you meant to have this: for i=1:70 cx(i)=-L(i)/2*(cp(i+1)+cp(i))*sin(theta(i)); end

2년 초과 전 | 0

답변 있음
Draw samples using a Non-Gaussian distribution
x = randn(100,1); x(randperm(numel(x),50))

2년 초과 전 | 0

답변 있음
Error in plotting - indices not compatible
vpasolve is returning empty (because it found no solution), so you cannot assign it to soly3(1) >> vpasolve(subs(N1_subs_tsol3/...

2년 초과 전 | 0

더 보기