Beantwortet
Can someone explain to me how to code the Tangent line and Normal line
https://de.mathworks.com/matlabcentral/answers/1816450-can-someone-tell-me-how-will-i-be-able-to-remove-the-error-in-this-script...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Extract values from one matrix and with iteration solve the system of linear equations
B = rand(3,3); A1 = 4; rhs = -A1*B(1,:).'; Mat = [-ones(3,1),B(2:3,:).']; sol = Mat\rhs; C1 = sol(1) A2 = sol(2) A3 = s...

fast 4 Jahre vor | 0

Beantwortet
I get "vectors must be the same length". How come?
How do you want to plot a vector of length 302 against a vector of length 352 ? It's not possible. x1 = 0:0.1:5; x2 = 5:0.1:35...

fast 4 Jahre vor | 0

Beantwortet
Is there any way to find the row with closest values in matrix with a given array values?
How do you define "closest" ? The Euclidean distance between array and rows of the matrix ? Then you can use mat1 = [1.0000 ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
linear combination of vector and permutation
values = [-1 1]; %// data k = 3; %// data n = numel(values);...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
a simple calculation by each row
Take ^(1/eta) of both sides of the equations. You get linear equations in x. Solve them. See solution above.

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Does MATLAB have inverse tangent integral TI2(z)?
format long x = 0.5; Ti2 = 1i*( -dilog(1-1i*x) + 0.25*dilog(1+x.^2) ) Ti2_compare = integral(@(x)atan(x)./x,0,x)

fast 4 Jahre vor | 0

Beantwortet
matlab not using the variable i give it in differential equation
syms k N t P(t) knum = 0.025; Nnum = 1000; sol = simplify(dsolve(diff(P,t)==k*P*(1-(P/N)), P(0)==200)) sol = subs(sol,[k N],...

fast 4 Jahre vor | 0

Beantwortet
Failure in initial objective function evaluation. FSOLVE cannot continue.
fun = @root7d; x0 = [10,10]; x = fsolve(fun,x0) fun(x) function F = root7d(x) %parameters vp=100; kp=0.5; q=1;...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
problem using the solve method
syms t eqn = 1000/(exp(log(4) - t/40) + 1) == 800; tsol = vpa(solve(eqn, t))

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I fix "Error in sym/subsref (line 898) R_tilde = builtin('subsref',L_tilde,Idx); ?
KgQ(indiciesQ,indiciesQ) = KgQ(indiciesQ,indiciesQ) + subs(KeQ,[x1Q x2Q x3Q], [xQ(i*2-1) xQ(i*2) xQ(i*2+1)]); % Ke into Kg contr...

fast 4 Jahre vor | 0

Beantwortet
Solving 3 equations with 3 unknowns
No problem. A = [2*sqrt(44.4) 0 0; 2*sqrt(34) 2*sqrt(3.92) 2*sqrt(57.4);2*sqrt(21.8) 2*sqrt(25.5) 2*sqrt(25.5)]; b = [52.11;52...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
If I had the derivative of an equation and had data points how would I plot them
d = @(x)1 - sin(x)./(2*sqrt(x)) - sqrt(x).*cos(x); x = [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0]; plot(x,d(x))

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
All combinations of the sum of 2 columns
a = [29;31;34].' ; b = [31;31;31] ; x = b-a xmax = max(x(:))

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
secant method exceeds the number of array
x(i+2)=x(i)-(fun(x(i))*((x(i+1)-x(i))/(fun(x(i+1))-fun(x(i))))); For i = 1, the evaluation of the right-hand side needs x(1) an...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to create a Fourier series using for loops
k = 1:14; x = (-2:0.01:2).'; f = 0.5 + sum(2./(k.^2*pi^2).*((-1).^k-1).*cos(pi*k.*x/2) + 2./(k*pi).*(-1).^(k+1).*sin(pi*k.*x/2...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Problem solving exponential equation
Your parantheses are unbalanced. After correcting it, the below code should work. syms t eqn = 1000/(exp(log(4) - t/40) + 1 ==...

fast 4 Jahre vor | 0

Beantwortet
How to quickly identify a list of nearby stations?
https://de.mathworks.com/help/stats/pdist.html And for your double loop, you should replace for i=1:m2 for j=1:m2 by fo...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
need a for loop that displays value at each point of x.
But I already gave you the formulae how to code "cumtrapz": 0 = ctrapz(1) [f(x0)+f(x1)]/2 * (x1-x0) = ctrapz(2) [f(x0)+f(x1)]...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Putting togethor constraints for fmincon
The conditions defined under "ineqconstraint" have to be put into the matrix A and the vector b of "fmincon".

fast 4 Jahre vor | 0

Beantwortet
'corrcoef' doesn't return a matrix as it should, but I always get 1?
for i=1:numel(time) coefR{i} = corrcoef((res2(i,:)).',(res3(i,:)).'); end

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
plotting functions from book
c = 1; k = 1.2:0.4:2.8; u = (linspace(0,2.4,100)).'; f = (k/c).*(u/c).^(k-1).*exp(-(u/c).^(k)); plot(u,f)

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to fill just such successive elements in row of matrix?
A = [ 0 50 0 0 0 0 0 50 0 0 0 0 50 0 0 0 0 0 50 0]; S = linspace(1,4...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Solving Double integral equations
u_0 = 1.25663706*1e-6; % permeability of free space L = 12.4; % Axial distance between rotor back plates p =8; % Number of p...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
2nd 3rd derivatives
x = [-2:0.01:1]; y = exp(-3.*x); dydx = diff(y)./diff(x); d2ydx2 = diff(dydx)./diff((x(1:end-1)+x(2:end))/2); d3ydx3 = diff(...

fast 4 Jahre vor | 0

Beantwortet
how can i sum the 'y' above in the picture i have polt ?
x = -2:0.001:2; y = 1.8*exp(-x.^2); plot(x,y) sum(y)

fast 4 Jahre vor | 0

Beantwortet
How do I find the eigenvalues and vectors of an equation not of form (A*x = b*x)?
Multiply be inv(M) and use eig as lambda = eig(inv(M)*K)

fast 4 Jahre vor | 0

Beantwortet
Help with Graphing Difference Equations
syms x n a b f = x^2-5*x+6; xsol = solve(f==0); y = a*xsol(1)^n + b*xsol(2)^n csol = solve([subs(y,n,0)==2,subs(y,n,1)==5],[...

fast 4 Jahre vor | 0

Beantwortet
How to calculate the number of values in a Gaussian distribution greater than one standard deviation?
I want to calculate the number of values greater than one standard deviation. Maybe you mean one standard deviation apart from ...

fast 4 Jahre vor | 0

Mehr laden