답변 있음
Elliptical trajectory and plot waypoints for robotic arm simulation
Fairly easy to do with this FEX submission, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-fo...

9일 전 | 0

답변 있음
Creating random non-discrete values and assigning weights
As an example, weightList=[0.4 , 0.1, 0.3, 0.2]; x=rand(1,6)*40, Weights = weightList(discretize(x,0:10:40))

10일 전 | 0

답변 있음
String split from the line .
As an example, B=split( ',A,B,C,D' , ','); B=B(~cellfun('isempty',B))

10일 전 | 0

| 수락됨

답변 있음
Assigning Columns to Multiple Variables
for i=1:4, Q{i}=Table{:,i}; end [A,B,C,D]=deal(Q{:})

10일 전 | 1

| 수락됨

답변 있음
how to call function from one m file to another m file?
lmimeena must be told what to return in the declaration line, function L=lmimeena(A,C)

10일 전 | 1

| 수락됨

답변 있음
How to access parameter guesses made by MATLAB in lsqnonlin?
No, it is gradient-driven search, not a grid search. However, nearly all Optimization Toolbox solvers have an OutputFcn option,...

10일 전 | 0

| 수락됨

답변 있음
How to Connecting nearby pixels of binary image
imclose() is the traditional way to close small gaps between nearby pixels.

10일 전 | 0

답변 있음
create parallel lines in the same pic and find the average of all the ffts in it
The operation sounds the same, up to a scale factor, as doing fft(radon(yourImage,theta))

10일 전 | 1

답변 있음
create parallel lines in the same pic and find the average of all the ffts in it
Could you imrotate() the image so that it's rows are parallel to your line? Then, the operation would reduce to fft( mean( imr...

10일 전 | 1

| 수락됨

답변 있음
Minimise the sum of squared errors, with non linear constraints
The unnecessary use of nonlinear constraints can slow things down. Your constraints are in fact linear, and should be expressed ...

10일 전 | 0

답변 있음
Optimization problem, how to limit the individual values in the control vector to a certain range
Assuming the u(i) are non-negative, the condition can be written as a linear constraint. u=optimvar('u',[10,1], 'LowerBound',0)...

10일 전 | 0

답변 있음
Error using lsqcurvefit: Function value and YDATA sizes are not equal.
A = 0.3; omega = 1; phi = 0.1; c = 0.1; initialGuess = [A omega phi c]; fun = @(x,timearray) x(1) .* (sin((timearray .*...

10일 전 | 0

| 수락됨

답변 있음
Error in using nlinfit function
You are not using the taua coefficients passed as input to BinaryI2WL. You are overriding them for some reason with random value...

10일 전 | 0

제출됨

Computes/applies rotation about arbitrary 3D line.

11일 전 | 다운로드 수: 28 |

답변 있음
Why Matlab cannot calculate simple double integrals with good accuracy?
I'm guessing that numerical accuracy might suffer because the integrand is discontinuous, and the curved boundary of the discont...

11일 전 | 0

답변 있음
Calculate diameter from a circle in an image in MATLAB
You can use drawcircle() to do it interactively, https://www.mathworks.com/help/images/ref/drawcircle.html h = Circle wi...

11일 전 | 0

답변 있음
Improving the speed of code with passing to a function input a cell array or structure.
We can't see what famplifire [sic.] is doing with your variables so there isn't any specific comments that can be made. However,...

11일 전 | 0

| 수락됨

답변 있음
Combine lsqcurvefit with fsolve
I would just use lsqnonlin. theta2 = [0.53,0.40,0.32,0.28,0.27,0.27,0.28,0.29,0.31,0.34,0.36,0.40,0.43,0.47,0.50,0.55,0.59,0...

11일 전 | 1

| 수락됨

답변 있음
Specify number of ones in each row and column in binary matrix
A=kron(eye(324),ones(3,6)); A=A(randperm(972), randperm(1944));

12일 전 | 0

| 수락됨

답변 있음
correction in order of elements in matrix obtained from reshape array
A loop-method, A=[4 4 4; 8 8 8]; B=[16 12 8]; c=min(A,B(1,:))./max(A,B(1,:))

12일 전 | 0

| 수락됨

답변 있음
correction in order of elements in matrix obtained from reshape array
A=[4 4 4; 8 8 8] B=[16 12 8] [mA,nA] = size(A); [mB,nB] = size(B); index=0; for j=1:nB for i=1:mA index=index+1; ...

12일 전 | 0

답변 있음
Working with a set of matrices
I'm not sure I will fully understand the task without seeing an example. However, if S is organized as an MxNxP array, [M,N]=d...

12일 전 | 0

| 수락됨

답변 있음
What is the advantage of Help with web connection
It could make sense to give users access to the most up-to-the minute documentation by default. For example, any documentation b...

12일 전 | 0

답변 있음
Shortest path constrained to use specific nodes
Why not just analyze a subgraph with the inadmissible nodes removed: cut=setdiff(1:numnodes(G),nodes); Gsub=rmnodes(G,cut);

12일 전 | 0

답변 있음
How to convert cell array containing text to numbers?
I don't think there is any solution that will work without any assumptions about the alphabetic content of the cells. Here, I as...

12일 전 | 1

| 수락됨

답변 있음
I want to reduce the width of certain plots in a subplot from other plots.
It can be done using the Postion or OuterPosition axes property, e.g., for i=1:3 ax(i)=subplot(3,1,i); plot(rand(1,5)...

12일 전 | 0

| 수락됨

답변 있음
Different rows height in tiled layout
Another solution would be to use nested tiledlayouts, e.g., m1=[5,6]; m2=[1,1,1,2]; T=tiledlayout(5,1); %Outer layout ...

12일 전 | 1

| 수락됨

답변 있음
Error using fsolve (line 287) FSOLVE requires all values returned by functions to be of data type double.
Get rid of '==0' F(1) = ((Tfout - x(2))/(Tfout - x(1))) - 1 + exp(-NTUe) ; F(2) = Qg - ((COPHP + 1)/COPHP) * Qu;

12일 전 | 1

| 수락됨

답변 있음
Using narrower property validation definitions in subclasses + using an abstract class for property validation
There is a lot to unpack in your question, but basically the solution I would recommend is that you make the abstract property a...

12일 전 | 0

| 수락됨

답변 있음
Optimization involving dot and cross product of two unit length variables
Yes, with fmincon()

12일 전 | 1