Respondida
why error occurring in the program, i already define the z1 correctly i think?
Where do you define z1(1),z2(1),z3(1),z4(1),z5(1), x1(1),x2(1),x3(1),x4(1),x5(1), o1(1),o2(1),o3(1),o4(1),o5(1) needed to st...

casi 4 años hace | 0

Respondida
How to find unknown y values from known x values on a graph with no clear line equation?
y_whole_number = interp1(x_experimental,y_experimental,(0:100))

casi 4 años hace | 0

| aceptada

Respondida
how can i get a slope in the loglog plot?
ID = ...; dID = gradient(log10((1:600).'),log10(ID)); loglog(ID) hold on plot(log10((1:600).'),dID)

casi 4 años hace | 0

| aceptada

Respondida
For loop for Covariance of two vectors
The covariance between two given vectors is a scalar, namely cov(x,y) = 1/(n-1) * sum_{i=1}^{i=n} (x(i)-mean(x))*(y(i)-mean(y))...

casi 4 años hace | 0

Respondida
How to calculate rate constant if population vs time table data is given?
I assume N is given after 1 second each and starts at t=0 with N(0) = 1. t = 1:9; N = [2 3 4.5 7 10 16 29 56 104]; fun = @(p,...

casi 4 años hace | 0

Respondida
Index exceeds the number of array elements. Index must not exceed 1.
In the expression CAn(i)=inct*((CA0-CA(i-1))/tresid-k*CA(i-1))+CA(i-1); , you reference CA as an array, but only CA(1) is defi...

casi 4 años hace | 0

Respondida
Find index of a number in a 3d array
i = find(A(:) == 31.5814); [i1 i2 i3] = ind2sub([14610,146,220],i(1)); A(i1,i2,i3) But most probably, floating point inaccura...

casi 4 años hace | 0

| aceptada

Respondida
How to plot a function for different values of input parameter in a function
Just define xi as a column vector of values, e.g. xi = [0.03 0.06].'; % activity parameter

casi 4 años hace | 0

Respondida
Solve implicit equation for isentropic flow
gamma = 1.4; [mach,T,P,rho,area] = flowisentropic(gamma,4,'sup') Aratio = 4.0; gamma = 1.4; fcn = @(M) (1/M)*(2/(gamma+1)*(1...

casi 4 años hace | 0

Respondida
How to fit my experimental data with using matlab code
integrand = @(r) sech((rm-r)/gama).* ... (1./(1-exp(-2*pi*sqrt(Eb./(r-Eg))))).* ... (1./(1-b*(r-Eg))); K = A*(1/rm)*(...

casi 4 años hace | 0

| aceptada

Respondida
MATLAB CODE FOR ROOT MEAN SQUARED
This is not the standard definition for the root-mean-square value of a matrix. Are you sure about the formula ? Then use cal...

casi 4 años hace | 0

| aceptada

Respondida
Internal heat source as a function of x,y and time in pde toolbox
Thank you for your answer. So i can’t define the function f with piecewise as i did? It’s wrong? Yes, it's wrong because it is ...

casi 4 años hace | 0

Respondida
stiff ode solver with non-negative properties
Do the negative solutions result from numerical inaccuracies or from the equations themselves ? If the latter is the case, no r...

casi 4 años hace | 0

Respondida
Match the series in the graph
a = 0.3217; x = linspace(-a*sqrt(2)+0.01,a*sqrt(2)-0.01,1000); y = 1./(x.^2/2 + a^2).^1.5; s = zeros(1,numel(x)); for n =...

casi 4 años hace | 0

| aceptada

Respondida
Internal heat source as a function of x,y and time in pde toolbox
User's Guide, page 5-541, shows you how to define your time-dependent heat source: https://de.mathworks.com/help/pdf_doc/pde/pd...

casi 4 años hace | 0

Respondida
Store my for loop in single vector
CMR = inv((k/100).*C1R+(1-(k/100)).*C0R); instead of CMR = inv((x/100).*C1R+(1-(x/100)).*C0R);

casi 4 años hace | 0

| aceptada

Respondida
Problem fitting with lsqcurvefit
M = [26 93 27 67.9 28 54.5 29 20.5 29.1 20.6 29.2 17.6 29.3 15.7 29.4 13 29.5 12 29...

casi 4 años hace | 1

| aceptada

Respondida
what will be the multiplication of all c values in loop (in given example), i.e. c1*c2*c3*c4*c5?
a = [1 2 3 4 5]; b = [0 1 0 6 4]; c = eye(2); for i = 1:5 c = c*[1 2+a(i); 1*b(i) 5]; end c

casi 4 años hace | 0

| aceptada

Respondida
How to plot multiple curves on the same screen for different values of "b" with bvp4c solver?
The solution will be Y1 = b, Y2 = Y3 = 0 Is it that what you want ?

casi 4 años hace | 0

Respondida
How to plot this implicit function? (It's one parameter also changes)
So you want several implicit plots in different colors for different values of phi ? Use "fimplicit" in a loop using "hold on"...

casi 4 años hace | 0

Respondida
Matlab help throws "Too many input arguments" when clicking on help tab
https://de.mathworks.com/matlabcentral/answers/1791920-how-do-i-fix-the-help-button-when-it-gives-an-error-reading-too-many-inpu...

casi 4 años hace | 0

Respondida
I am writing a program for lateral- direction motion of an airvraft using Runga Kutta 4th order method.
%%this is my program: %write the computer programme in Matlab to solve equations of motion of %lateral-directional motion of a...

casi 4 años hace | 0

Respondida
extracting rows with the highest value
A = [1 3 4 6 2 5 8 1]; [~,imax] = max(A(:)); [irow,~] = ind2sub(size(A),imax(1)) A(irow,:)

casi 4 años hace | 0

| aceptada

Respondida
Minimum and Maximum after maximum value
The first element of v which is a maximum is taken. If the last element of v is the maximum, m will be empty. v = [1 5 7 3 2 6...

casi 4 años hace | 0

| aceptada

Respondida
How to draw contour plot of given function?
x0 = -0.1:0.001:0.1; y0 = -0.1:0.001:0.1; omega = 30; w0 = 0.02; m = 2; [X0,Y0] = meshgrid(x0,y0); f = @(x0,y0)sinh(omega*...

casi 4 años hace | 0

| aceptada

Respondida
Why am I getting "incompatible array size error" when I am using only scalars in a nested integration problem
i1= @(r,tau) integral(@(x) fc(r,x,tau),0,inf,'ArrayValued',true); i2= @(r,tau) integral(@(x) 1-CC(r,x,tau),0,inf,'ArrayValued',...

casi 4 años hace | 0

| aceptada

Respondida
Can someone check my code ?
That's exactly what your code does in my opinion. Or give an example where it does not perform as you described it should. Fou...

casi 4 años hace | 0

| aceptada

Respondida
Minimizing an equation to 0
A = [4 3; 6 2; 7 -3]; B = [1 -3; 2 2; 5 -pi]; C = [12 -0.5; 7 -3; 0 1]; fun = @(p)reshape(A-(p(1)*B+p(2)*C),[],1); sol = lsq...

casi 4 años hace | 0

Respondida
Checking multiple values in an equation in MATLAB
format long x = 1271; [y,z] = result(x) function [y,z] = result(x) if x <= 30 disp('Problem not solvable') y =...

casi 4 años hace | 0

Respondida
Stability boundaries - intersection with real and Imaginary axis
You can determine the roots analytically because the polynomials have order <= 4. Here is a numerical solution for imag(Z) = 0....

casi 4 años hace | 1

| aceptada

Cargar más