Statistics
0 Questions
6,971 Answers
RANK
14
of 301,738
REPUTATION
17,324
CONTRIBUTIONS
0 Questions
6,971 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
2,020
RANK
of 21,403
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 176,316
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
Feeds
Volume and Surface Area of a Compound Geometric Object
Code for volume and surface area. You might want to try to vectorize the for-loops. c1 = [0 0 0]; c2 = [sqrt(2) 0 0]; c3 = [s...
1 day ago | 1
| accepted
error from Interpolation of the attached data
clear all load('data.mat'); [x1,i1] = unique(x1); y1 = y1(i1); [x2,i2] = unique(x2); y2 = y2(i2); figure(1);plot(x1,y1...
2 days ago | 1
| accepted
PDEPE for root diffusion in soils
In my opinion, the boundary condition at x = 0 is not correctly set. Your boundary condition is D*dc/dx = h*(c-c_atm) "pde...
3 days ago | 0
my matlab says i dont have a valid licence
https://uk.mathworks.com/matlabcentral/answers/1819010-why-do-i-receive-mathworks-licensing-error-5005-you-do-not-have-a-valid-l...
4 days ago | 1
Solving diffeerntial equations numerically
If you want solutions at multiples of dt without interpolation, the only way I can think of is to call the ode integrator in a l...
8 days ago | 0
Error in simscape when computing derivative
Can you compute der(linPosition) ? If this is the case, you get an algebraic equation for omega = der(theta): Write the first...
14 days ago | 0
| accepted
Find x values where y values are the same from a set of data.
First column is voltage from D8 (multiplied by 1e-8), the following columns are the times this voltage repeats in D2 afterwards....
17 days ago | 1
| accepted
fegeometry telling my I have infs or nans when I do not
You already checked most of the following possible issues. Checking for very large/small values instead of NaN/Inf, checking for...
17 days ago | 0
Anyone who can help on the bvp4c code?
Reducing the Deborah number gives smooth results. I guess 1-De*max(f)^2 (i.e. the factor in front of f''') should remain posit...
1 month ago | 0
| accepted
persistent variable from previous run is not deleted during a new run of my .m file
Using two .m-files instead of only one script seems to solve the problem according to https://uk.mathworks.com/matlabcentral/an...
1 month ago | 0
Implicit finite difference scheme in MATLAB for 1D Mobile-Immobile Model (MIM) with linear sorption and degradation
Substitute the right-hand side of the equation for the Immobile Region for the expression theta_im*R_im*dC_im/dt in the equation...
1 month ago | 0
Anyone with an idea on how can we make the plotting style of the bvp4c and the SRM method to be the same?
Write two functions sisko_bvp4c and sisko_SRM - thus one for bvp4c and one for your spectral relaxation method - that accept L, ...
1 month ago | 0
| accepted
How can we make the following spectral relaxation code to run?
Here is a code for the Blasius equation to give you an idea: N = 100; L = 10; % % Solve Blasius equation f''' + 0.5*f*f'' ...
1 month ago | 0
How can we make the following spectral relaxation code to run?
I modified A1, B1, A2, B1 and A3 to get compatible dimensions for matrix multiplications without knowing whether these modificat...
1 month ago | 0
input freqRange in bandpower doc example returning an error when it is a Mx2 matrix
The specification of "freqRange" as Mx2 matrix was introduced in R2026a. Do you use this MATLAB version already ? Alternatively...
1 month ago | 0
| accepted
textscatter example, and behavior, is mysterious
Most probably, text is set where possible and the rest positions are marked by blue points. The following example seems to sup...
1 month ago | 1
Why is Preallocating arrays important in MATLAB, and how does it improve performance compared to dynamically growing arrays?
That's what AI answers: Preallocation in MATLAB—creating an array to its full size before filling it within a loop—is significa...
1 month ago | 0
can this code be improved?
Better use separate functions for problem setup, ODE solution and plotting and call these three functions from one main driver. ...
2 months ago | 0
Finding all eigen value between two given eigen value.
There is no special feature in "eig" or "eigs" to find all eigenvalues within a specified range. The best you can do is to use "...
2 months ago | 0
Can anyone help on the plotting of the Skin friction coefficient , Nusselt number and the Sherwood number on bvp4c?
If Skin friction coefficient = Cfx*0.5*Re^(1/(n+1)), Nusselt Number = Nux*Re^(-1/(n+1)) and Sherwood number = Shx*Re^(-1/(n+1))...
2 months ago | 0
Good day my good people, how can we plot the classical variables and the main equations under variation of parameters in bvp4c?
To compute the "classical" variables Cx, Nux and Shx, we need Reb. To vary parameters, use a loop. E.g. sisko5() function sis...
2 months ago | 0
| accepted
In optimization toolbox, fmincon implemented both IPM and SQP. There are many versions of IPM and SQP. Can you please explain which IPM and SQP algorithms are implemented?
Description of the algorithms used / General and specific references to literature: https://uk.mathworks.com/help/optim/ug/cons...
2 months ago | 0
| accepted
How to use the nonlinear least square fitting to fit a transfer function?How to improve the fitting accuracy
Replace [cof,resnorm,residuals,exitflag,output] = ... lsqcurvefit(@OBJrealimag,T0,2*pi*ft,ydata2); by options = optimset...
2 months ago | 1
How do I set up these three water application events in MATLAB and incorporate them into the boundary conditions?
The usual way to discretize the diffusion equation du/dt = d/dz (D(u)*du/dz) for a given flux q = -D*du/dz at z = z_0 on a gri...
2 months ago | 0
Kinks/discontinuities in pdepe solution
Are you sure you want to solve your problem in cylindrical coordinates (since you set m = 1 in the call to "pdepe") ? Tighten y...
2 months ago | 1
| accepted
obtain an equation for the curve joining maximum points, using an appropriate interpolation or “curve fitting” process???
Follow @Matt J 's advice and maximize y=v0*sin(angle_rad)*t - 0.5*g*t.^2 over t for a given angle "angle_rad". For comparison: ...
2 months ago | 0
How do I solve coupled PDEs and ODEs together using pdepe?
The usual setting in this case is c = 1 f = 0 s = according to your ODE pl = 0 pr = 0 ql = 1 qr = 1 for the ODEs. This...
2 months ago | 0
| accepted
What are possible causes of "Unable to meet integration tolerances without reducing the step size below the smallest value allowed" when calling ode15s() from Simulink?
What are possible causes of "Unable to meet integration tolerances without reducing the step size below the smallest value all...
2 months ago | 0
Confidence interval in fit
Call "confint" (for the parameters) or "predint" (for the fit) from the command line with the wanted confidence level: https://...
2 months ago | 1
| accepted
what's wrong with matlab dsolve ?
If a > 0, insert C1 = const + log(a) in MATLAB's solution for the free constant C1, and you will recover your solution. For a ...
2 months ago | 0









