photo

James_111


Last seen: 5 years ago Active since 2019

Followers: 0   Following: 0

Statistics

MATLAB Answers

13 Questions
0 Answers

RANK
230,116
of 300,753

REPUTATION
0

CONTRIBUTIONS
13 Questions
0 Answers

ANSWER ACCEPTANCE
84.62%

VOTES RECEIVED
0

RANK
 of 21,075

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 170,858

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 3

View badges

Feeds

View by

Question


Error using integral (line 85) A and B must be floating-point scalars.
My code is: b=10;a=3;q=0.1; scdf = @(x) (1-(b./(x+b)).^a)./(1-(b./(10+b)).^a); integral(@(x) (1+q).*(1-scdf(x)).^0.5,0,10); ...

5 years ago | 1 answer | 0

1

answer

Question


How to change the StepTolerance in fslove
Hi All, I have a code: format long; options = optimset('TolFun',1e-15,'MaxFunEvals',1e5,'Maxiter',1e5,'Display','iter'); opt...

6 years ago | 1 answer | 0

1

answer

Question


fsolve, In an assignment A(:) = B, the number of elements in A and B must be the same.
Hi All, my code is: format long; pvals = 10:0.2:14; nump = length(pvals); m = zeros(1, nump);n = zeros(1, nump);z = zeros(1...

7 years ago | 1 answer | 0

1

answer

Question


fminsearch, Function arguments must be symbolic variables, and function body must be sym expression.
Hi All, my code is: p=10; spdf = @(x) 3.*(50.^3)./(x+50).^(3+1)./(1-(50./(50+50)).^3); fun2 = @(x,z) min(x,max(0,fzero(@(y) (...

7 years ago | 1 answer | 0

1

answer

Question


If function, Index exceeds matrix dimensions.
Hi All, my code is: syms x y m n; funt=@(x,m,n,y) (100-10-x+y).^(-0.5)-(2.*n+4.*m.*y); if funt(x,m,n,0)<=0 funfun(x,m,n)...

7 years ago | 2 answers | 0

2

answers

Question


fzero, because complex function value encountered during search
Hi my friend, I have one question regarding the fzero. My code is as follows: p=11; spdf = @(x) 3.*(50.^3)./(x+50).^(3+1)./(1-...

7 years ago | 2 answers | 0

2

answers

Question


Fzero, Function value at starting guess must be finite and real.
Hi Everyone, my code is: format long; b=50;a=3;e=50; spdf = @(x) 3.*(50.^3)./(x+50).^(3+1)./(1-(50./(50+50)).^3); fun2 = @...

7 years ago | 1 answer | 0

1

answer

Question


Diff, derivative does not exist
My code is: fun=@(x) abs(x-1); pfun=@(x) diff(fun(x),x); feval(pfun,1) It didn't return any answer after running the code. M...

7 years ago | 0 answers | 0

0

answers

Question


Fzero, Function value at starting guess must be finite and real
My code is: format long; b=50;a=3;e=50; spdf = @(x) a.*(b.^a)./(x+b).^(a+1)./(1-(b./(e+b)).^a); fun21 = @(x,u,m) min(x,max(0...

7 years ago | 1 answer | 0

1

answer

Question


In an assignment A(:) = B, the number of elements in A and B must be the same.
My code is: pvals = 10:1:15; nump = length(pvals); for pidx = 1 : nump p=pvals(pidx); [x(pidx),y(pidx)]=solve('9*x(...

7 years ago | 1 answer | 0

1

answer

Question


a loop problem in matlab
My code is: for p=1:0.01:2; plot3(p,p.^2,p.^3); end I want to use a loop of p to create a three dimentional figure. ...

7 years ago | 1 answer | 0

1

answer

Question


FZERO cannot continue because user-supplied function_handle, A and B must be floating-point scalars.
My code is: p=0.51:0.001:1.013; fun1 = @(x) x.^2.*exp(-x)./(1-exp(-10)); fun2 = @(x,u) fzero(@(y) 2.*u.*y.*(20-p-x+y).^0.5...

7 years ago | 3 answers | 0

3

answers

Question


fzero, Operands to the || and && operators must be convertible to logical scalar values.
My code is: integral(@(x) fzero(@(y) y-x-1,[0,20]),1,10) Here is the error I get: Operands to the || and && operators must...

7 years ago | 2 answers | 0

2

answers