Feeds
답변 있음
Need help with homework.
Note that the name of the German physician was Fahrenheit, not Farenheit. % prompt for user to choose which conversion chosen_...
Need help with homework.
Note that the name of the German physician was Fahrenheit, not Farenheit. % prompt for user to choose which conversion chosen_...
대략 15시간 전 | 0
답변 있음
Weird bugs when solving three coupled second order differential equations using ode45
syms x1(t) x2(t) y(t) t0 = [0 1]; % y0 must be given in the order as prescribed by S (see below), thus % y0 = (x2(0),dx2/dt(0...
Weird bugs when solving three coupled second order differential equations using ode45
syms x1(t) x2(t) y(t) t0 = [0 1]; % y0 must be given in the order as prescribed by S (see below), thus % y0 = (x2(0),dx2/dt(0...
대략 16시간 전 | 0
| 수락됨
답변 있음
Bessel function has problems in converting symbolic function into handle function.
It works for the numerical "besselj" function. Its derivative is given here: https://uk.mathworks.com/matlabcentral/answers/93...
Bessel function has problems in converting symbolic function into handle function.
It works for the numerical "besselj" function. Its derivative is given here: https://uk.mathworks.com/matlabcentral/answers/93...
대략 16시간 전 | 0
| 수락됨
답변 있음
Bessel function has problems in converting symbolic function into handle function.
This code seems to work. Can you show us where you encounter problems ? syms x n = 12; f = sqrt(sym(pi)/(2*x))*besselj(n+1/2,...
Bessel function has problems in converting symbolic function into handle function.
This code seems to work. Can you show us where you encounter problems ? syms x n = 12; f = sqrt(sym(pi)/(2*x))*besselj(n+1/2,...
대략 19시간 전 | 0
답변 있음
optimization expression includes an integration
c = optimvar("c",1,1,'Type','continuous','LowerBound',0.1,'UpperBound',10); g1 = @(x,c) exp(-0.5*(x./c).^2)./sqrt(2*pi*c^2); o...
optimization expression includes an integration
c = optimvar("c",1,1,'Type','continuous','LowerBound',0.1,'UpperBound',10); g1 = @(x,c) exp(-0.5*(x./c).^2)./sqrt(2*pi*c^2); o...
1일 전 | 1
답변 있음
How can I clear an error "The expression to the left of the equals sign is not a valid target for an assignment?"
You have seven differential equations, but you only specify six boundary conditions. That's mathematically incorrect. plot_velo...
How can I clear an error "The expression to the left of the equals sign is not a valid target for an assignment?"
You have seven differential equations, but you only specify six boundary conditions. That's mathematically incorrect. plot_velo...
1일 전 | 0
답변 있음
I am getting an error
Do you want to overwrite the MATLAB function "convolution1dLayer" by your own function ? function output = convolution1dLayer(i...
I am getting an error
Do you want to overwrite the MATLAB function "convolution1dLayer" by your own function ? function output = convolution1dLayer(i...
1일 전 | 0
답변 있음
Why does this code give error?
Force the array ix1 to be of the same length as ix by explicitly allocating it with the size of ix: % Run the GBO algorithm...
Why does this code give error?
Force the array ix1 to be of the same length as ix by explicitly allocating it with the size of ix: % Run the GBO algorithm...
1일 전 | 0
| 수락됨
답변 있음
issue with fmincon function.
I guess the objective function should read obj_fun = @(x) -(Nup - Nt) / Nup * sum(log2(1 + x(1:Ns) ./ (sigma2 * (vecnorm(reshap...
issue with fmincon function.
I guess the objective function should read obj_fun = @(x) -(Nup - Nt) / Nup * sum(log2(1 + x(1:Ns) ./ (sigma2 * (vecnorm(reshap...
2일 전 | 0
| 수락됨
답변 있음
Index in position 1 exceeds array bounds. Index must not exceed 18.
data = (EEG.icaweights(opt.component,:)*EEG.icasphere)*data(EEG.icachansind,:); You are aware that you overwrite the matrix "da...
Index in position 1 exceeds array bounds. Index must not exceed 18.
data = (EEG.icaweights(opt.component,:)*EEG.icasphere)*data(EEG.icachansind,:); You are aware that you overwrite the matrix "da...
2일 전 | 1
| 수락됨
답변 있음
How do I construct matrices of multiple variables and plot a graph
tspan=[0 3]; x0=100; y0=0; z0=[x0;y0]; [tSol, zSol]=ode45(@odefun,tspan,z0); plot(tSol, zSol); function dzdt=odefun(t,z) ...
How do I construct matrices of multiple variables and plot a graph
tspan=[0 3]; x0=100; y0=0; z0=[x0;y0]; [tSol, zSol]=ode45(@odefun,tspan,z0); plot(tSol, zSol); function dzdt=odefun(t,z) ...
4일 전 | 1
답변 있음
I don't know what this means
Most probably, you don't have write permission in the directory to which you want to unzip 'MerchData.zip'.
I don't know what this means
Most probably, you don't have write permission in the directory to which you want to unzip 'MerchData.zip'.
4일 전 | 0
답변 있음
Coupled ODEs by ode45 and could not get the figures
% Initial conditions Y0 = [298; 0.75; 0.04; 0.015; 0.0331; 0]; % [T0; Xa0; Xc0; Xs0; Z0; Soc0] % Time span tspan = [0 3000]; ...
Coupled ODEs by ode45 and could not get the figures
% Initial conditions Y0 = [298; 0.75; 0.04; 0.015; 0.0331; 0]; % [T0; Xa0; Xc0; Xs0; Z0; Soc0] % Time span tspan = [0 3000]; ...
6일 전 | 1
답변 있음
Can integral2 left a variable inside?
@Guan Hao You cannot simply remove the w in your expression as suggested by @Umar. I'd do the general integration first and the...
Can integral2 left a variable inside?
@Guan Hao You cannot simply remove the w in your expression as suggested by @Umar. I'd do the general integration first and the...
6일 전 | 0
| 수락됨
답변 있음
A numerical calculation problem leading to Inf or NaN in matlab
log2(norm(x,lambda)) does not work ?
A numerical calculation problem leading to Inf or NaN in matlab
log2(norm(x,lambda)) does not work ?
7일 전 | 1
답변 있음
Hello all, kindly, I have question , how can I get the piecewise function of this blood flow rate shown below using Matlab
T = 0.56; A = 220; fun = @(x)A*sin(2*pi*x/T).*(x>=0 & x<=T/2) + 0*(x>T/2 & x <=0.7); F = @(x)fun(mod(x,0.7)); x = linspace(0...
Hello all, kindly, I have question , how can I get the piecewise function of this blood flow rate shown below using Matlab
T = 0.56; A = 220; fun = @(x)A*sin(2*pi*x/T).*(x>=0 & x<=T/2) + 0*(x>T/2 & x <=0.7); F = @(x)fun(mod(x,0.7)); x = linspace(0...
7일 전 | 0
| 수락됨
답변 있음
calling function from separate document for fitting
However, when I try to call script 1 from 2, I get a ton of error messages. Could I please ask why is this the problem? You ca...
calling function from separate document for fitting
However, when I try to call script 1 from 2, I get a ton of error messages. Could I please ask why is this the problem? You ca...
8일 전 | 0
| 수락됨
답변 있음
Setting bounds for constants in a fit() object in terms of other constants in the fit object
Use "lsqcurvefit" and set A(1,2) = -1, A(1,3) = 1/min(x) and b(1) = 0 for the linear constraint condition A*x<=b.
Setting bounds for constants in a fit() object in terms of other constants in the fit object
Use "lsqcurvefit" and set A(1,2) = -1, A(1,3) = 1/min(x) and b(1) = 0 for the linear constraint condition A*x<=b.
8일 전 | 1
답변 있음
How store evolution of x over the iterations of lsqnonlin?
If you can't use the nested approach, define "history" as a persistent variable and call "myoutput" after the computation has fi...
How store evolution of x over the iterations of lsqnonlin?
If you can't use the nested approach, define "history" as a persistent variable and call "myoutput" after the computation has fi...
8일 전 | 1
답변 있음
Something doesn't work for me in fit
hist_x=[10 30 50 70 90 110 130 150 170 190 210 230 250,... 270 290 310 330 350 370 3...
Something doesn't work for me in fit
hist_x=[10 30 50 70 90 110 130 150 170 190 210 230 250,... 270 290 310 330 350 370 3...
9일 전 | 0
답변 있음
simplify and reorganize symbolic expression
The only symbolic function that comes to mind is "coeffs". If this function does not do what you want, I fear you are lost here....
simplify and reorganize symbolic expression
The only symbolic function that comes to mind is "coeffs". If this function does not do what you want, I fear you are lost here....
10일 전 | 0
| 수락됨
답변 있음
help with bvp4c error
Use solinit = bvpinit(x_init,[1 1 phi_c 0]); instead of solinit = bvpinit(x_init,[1 1 phi_c 0],w); Why did you use the w-pa...
help with bvp4c error
Use solinit = bvpinit(x_init,[1 1 phi_c 0]); instead of solinit = bvpinit(x_init,[1 1 phi_c 0],w); Why did you use the w-pa...
11일 전 | 0
답변 있음
Index in position 1 is invalid. Array indices must be positive integers or logical values Error
Array indexing in MATLAB starts with 1, not with 0. But you try to set Pdata(0)=pressure01(0,1); in your nested loop for i = ...
Index in position 1 is invalid. Array indices must be positive integers or logical values Error
Array indexing in MATLAB starts with 1, not with 0. But you try to set Pdata(0)=pressure01(0,1); in your nested loop for i = ...
11일 전 | 0
답변 있음
Is this a correct way to use fsolve?
Solve in w^2 instead of w - then there shouldn't be imaginary parts in the solution: F = @(w) ((1-p)/C)*(kappa^q - (w^2)^q)+y+z...
Is this a correct way to use fsolve?
Solve in w^2 instead of w - then there shouldn't be imaginary parts in the solution: F = @(w) ((1-p)/C)*(kappa^q - (w^2)^q)+y+z...
12일 전 | 1
| 수락됨
답변 있음
Performing Newton's divided difference and trapezoidal rule in one program
I don't know if this is what you want. Your code is very badly structured and hard to follow. Shouldn't x=[2 4 6 8 10 12 14 1...
Performing Newton's divided difference and trapezoidal rule in one program
I don't know if this is what you want. Your code is very badly structured and hard to follow. Shouldn't x=[2 4 6 8 10 12 14 1...
12일 전 | 0
| 수락됨
답변 있음
why am I getting this difference in the plotting?
Your choice of a and b must be different from the values you posted: % First method a = 3; b = 0.9; x0 = 0.9; y0 = 1-x0; f...
why am I getting this difference in the plotting?
Your choice of a and b must be different from the values you posted: % First method a = 3; b = 0.9; x0 = 0.9; y0 = 1-x0; f...
13일 전 | 0
| 수락됨
답변 있음
help solving for Delx
qf = 38.6; T1 = 25; e=0.95; s=5.67e-8; K=300; t=0.12; w=3; fun = @(T,delx) [T(1)-T1; qf - K*w*t/delx*(T(1)-T(2)) - 2...
help solving for Delx
qf = 38.6; T1 = 25; e=0.95; s=5.67e-8; K=300; t=0.12; w=3; fun = @(T,delx) [T(1)-T1; qf - K*w*t/delx*(T(1)-T(2)) - 2...
15일 전 | 0
| 수락됨
답변 있음
Why i am getting blank graph? Can someone help me to figure out error in my code.
is_exam3() function is_exam3 L=0.01; M=0; q=0.5; a=0.03; Pr=0.1; b=0.2; p=0.1; m=0.1; e=1.0; H=0.1; E=0.1; o=0...
Why i am getting blank graph? Can someone help me to figure out error in my code.
is_exam3() function is_exam3 L=0.01; M=0; q=0.5; a=0.03; Pr=0.1; b=0.2; p=0.1; m=0.1; e=1.0; H=0.1; E=0.1; o=0...
15일 전 | 0
답변 있음
How to solve the following PDE equation
I think you mean x(s,0) = 10 instead of x(s,t) = 10, don't you ? The easiest way to solve the equation is to discretize the exp...
How to solve the following PDE equation
I think you mean x(s,0) = 10 instead of x(s,t) = 10, don't you ? The easiest way to solve the equation is to discretize the exp...
15일 전 | 0
| 수락됨