답변 있음

Row-normalizing large sparse matrix

The attempt you've posted will only work if vals_W is the same size as sum_vals, which can only occur when there is exactly one ...

Row-normalizing large sparse matrix

The attempt you've posted will only work if vals_W is the same size as sum_vals, which can only occur when there is exactly one ...

11일 전 | 0

| 수락됨

제출됨

Object-oriented tools for fitting conics and quadrics

A tool set for fitting various conics and quadric surfaces, e.g., ellipses, cylinders, spheres, planes, and lines.

12일 전 | 다운로드 수: 6 |

답변 있음

Problem with fmincon fval

As Walter suggests, the multiple fvals per iteration are part of finite difference computations needed to evaluate the cost func...

Problem with fmincon fval

As Walter suggests, the multiple fvals per iteration are part of finite difference computations needed to evaluate the cost func...

12일 전 | 0

답변 있음

Finding a row with a certain value and the next nth rows after that

Here's an approach that uses logical indexing only: A=[ 0.9058 0.2785 0.9706 0.4218 0.0357 0.1270 0.5469 ...

Finding a row with a certain value and the next nth rows after that

Here's an approach that uses logical indexing only: A=[ 0.9058 0.2785 0.9706 0.4218 0.0357 0.1270 0.5469 ...

13일 전 | 1

| 수락됨

질문

Is there a way to interactively move a plot legend in a Live Editor figure?

In a normal figure window, I can reposition a plot legend by clicking and dragging. Is it possible to do something similar in a ...

13일 전 | 답변 수: 1 | 1

답변 있음

Best way to move multiple objects with a preallocated matrix of coordinates?

I see movement when I do this, xl=xlim; for b=1:1:nStarts*nCarsPerStart for h=nStarts+1:nStarts:nStarts*(t+1) ...

Best way to move multiple objects with a preallocated matrix of coordinates?

I see movement when I do this, xl=xlim; for b=1:1:nStarts*nCarsPerStart for h=nStarts+1:nStarts:nStarts*(t+1) ...

13일 전 | 0

| 수락됨

답변 있음

averaging images and subtracting one image from the other

For example, setA=rand(256,256,10); setB=rand(256,256,10); imageA=mean(setA,3); imageB=mean(setB,3); result = imageB-im...

averaging images and subtracting one image from the other

For example, setA=rand(256,256,10); setB=rand(256,256,10); imageA=mean(setA,3); imageB=mean(setB,3); result = imageB-im...

13일 전 | 0

| 수락됨

답변 있음

Trying to do a curve fitting but having trouble getting it to work.

Do you happen to know why I keep getting the "local minimum possible" Because lsqcurvefit thinks it succeeded in finding a sol...

Trying to do a curve fitting but having trouble getting it to work.

Do you happen to know why I keep getting the "local minimum possible" Because lsqcurvefit thinks it succeeded in finding a sol...

13일 전 | 0

답변 있음

Need help creating a variable with different names or a method for saving a variable to different names.

for k=1:K S(k).A(i,j) = readline(s); S(k).B(i,j) = readline(s); S(k).C(i,j) = readline(s); S(k).D(i,j) = readline(s); e...

Need help creating a variable with different names or a method for saving a variable to different names.

for k=1:K S(k).A(i,j) = readline(s); S(k).B(i,j) = readline(s); S(k).C(i,j) = readline(s); S(k).D(i,j) = readline(s); e...

13일 전 | 0

| 수락됨

질문

Inheriting help documentation from an Abstract base class method

Suppose I have a base class with many subclasses, each of which will override an abstract method in the base class, classdef Ba...

14일 전 | 답변 수: 0 | 1

답변 있음

Nonlinear fit instead of setting up a non linear equation?

Your problem appears to be a linear fit. I see no non-linear dependence on x or y. You should therefore use lsqlin, if you also ...

Nonlinear fit instead of setting up a non linear equation?

Your problem appears to be a linear fit. I see no non-linear dependence on x or y. You should therefore use lsqlin, if you also ...

15일 전 | 1

| 수락됨

답변 있음

Would you let me know one of the fastest (or the most efficient) ways to merge data?

final_data = cell2mat(data(:))

Would you let me know one of the fastest (or the most efficient) ways to merge data?

final_data = cell2mat(data(:))

15일 전 | 0

| 수락됨

답변 있음

Inf computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.

the fit created by the function y(x) is very, very poor. Basically, it is straight line The fit looks very good considering you...

Inf computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.

the fit created by the function y(x) is very, very poor. Basically, it is straight line The fit looks very good considering you...

15일 전 | 1

| 수락됨

답변 있음

Calling superclass method outside of redefined method

It should be enough just to provide an overriding analyze() method in the subclass, classdef DataApproximator < DataAnalyzer ...

Calling superclass method outside of redefined method

It should be enough just to provide an overriding analyze() method in the subclass, classdef DataApproximator < DataAnalyzer ...

15일 전 | 0

답변 있음

Calling superclass method outside of redefined method

Why do you have to do it through inheritance? Couldn't you pass a function handle to the analyze() method that you want as a con...

Calling superclass method outside of redefined method

Why do you have to do it through inheritance? Couldn't you pass a function handle to the analyze() method that you want as a con...

16일 전 | 0

답변 있음

How to evaluate functions for every possible input parameter combination?

You can use ndgrid, [X,Y,Z]=ndgrid( 0:5:1000); F = X.^2 + Y; G = Y.^2 + Z; H = X + Y + Z.^3; idx=(F<=5); locations =...

How to evaluate functions for every possible input parameter combination?

You can use ndgrid, [X,Y,Z]=ndgrid( 0:5:1000); F = X.^2 + Y; G = Y.^2 + Z; H = X + Y + Z.^3; idx=(F<=5); locations =...

16일 전 | 1

| 수락됨

답변 있음

Using optimization Toolbox without Objective functions, only set of points

in total I have 10 of these set of points You are minimizing over a small, finite set of things. Just use min().

Using optimization Toolbox without Objective functions, only set of points

in total I have 10 of these set of points You are minimizing over a small, finite set of things. Just use min().

16일 전 | 0

답변 있음

adjmat unrecognized function in Matlab

Is adjmat supposed to be computing the adjugate of the matrix t5. If so, you might be able to use this instead, https://www.mat...

adjmat unrecognized function in Matlab

Is adjmat supposed to be computing the adjugate of the matrix t5. If so, you might be able to use this instead, https://www.mat...

16일 전 | 0

답변 있음

Calculating a matrix from other matrices

Q=eye(n); Mcell=cell(n,1); for i=1:N Mcell{i}=C*Q*B; Q=A*Q+Q; end M=cell2mat(Mcell);

Calculating a matrix from other matrices

Q=eye(n); Mcell=cell(n,1); for i=1:N Mcell{i}=C*Q*B; Q=A*Q+Q; end M=cell2mat(Mcell);

16일 전 | 0

답변 있음

tangent plan at fixed point

You can use gradient() to calculate the normal to the plane.

tangent plan at fixed point

You can use gradient() to calculate the normal to the plane.

16일 전 | 0

답변 있음

Problem concerning the fitness function of the genetic algorithm on MATLAB.

Make y1 and y2 the same size and shape (i.e., make sure both are row vectors or both column vectors).

Problem concerning the fitness function of the genetic algorithm on MATLAB.

Make y1 and y2 the same size and shape (i.e., make sure both are row vectors or both column vectors).

16일 전 | 1

| 수락됨

답변 있음

decrease the vertical space between the subplots

Instead of subplot(), use subaxis() from the File Exchange.

decrease the vertical space between the subplots

Instead of subplot(), use subaxis() from the File Exchange.

16일 전 | 0

답변 있음

Implicit surface plot of a finite cylinder

The solution, as it turns out, was fairly simple: args={'EdgeColor','none','FaceColor','c','FaceAlpha',0.3}; fimplicit3(@fun...

Implicit surface plot of a finite cylinder

The solution, as it turns out, was fairly simple: args={'EdgeColor','none','FaceColor','c','FaceAlpha',0.3}; fimplicit3(@fun...

17일 전 | 0

| 수락됨

질문

Implicit surface plot of a finite cylinder

Using fimplicit3, I can plot an infinite cylinder, like so: args={'EdgeColor','none','FaceColor','c','FaceAlpha',0.3}; fimpl...

17일 전 | 답변 수: 1 | 0

답변 있음

Matrix Optimization using optimization toolbox - "Objective must be a scalar OptimizationExpression or a struct containing a scalar OptimizationExpression."

You do not have a minimization problem. You just have a system of equations that you are trying to solve. For that, you would us...

Matrix Optimization using optimization toolbox - "Objective must be a scalar OptimizationExpression or a struct containing a scalar OptimizationExpression."

You do not have a minimization problem. You just have a system of equations that you are trying to solve. For that, you would us...

18일 전 | 1

| 수락됨

답변 있음

How to obtain the standard error for each of the fitted parameters

If you're prepared to assume the parameter estimates have Gaussian errors, perhaps you can find the 95% confidence interval widt...

How to obtain the standard error for each of the fitted parameters

If you're prepared to assume the parameter estimates have Gaussian errors, perhaps you can find the 95% confidence interval widt...

19일 전 | 0