Beantwortet
which of the following sets vectors are independent?
In order to prove that sin(t), cos(t) and cos(2*t) are independent, you have to show that if f(t) = a*sin(t) + b*cos(t) + c*co...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Help in writing a a code for an array based on comdition.
A1 = [-0.0082 -0.0409 -0.0175 -0.0853 0.0217 -0.2556 -0.0302] A = -(A1<0) + (A1>0) s = sum(A) threshold = 12; v...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Keep getting an error with trapz. Please help
baba = trapz(time,ribua) instead of baba = trapz(T,ribua)

mehr als 3 Jahre vor | 1

Beantwortet
Fitting a Transcendental Equation with Multiple Solutions
You can try "lsqnonlin" with the functions F_ij defined as F_ij = f(a1,a2,a3,x_i,y_ji) - c Here, the y_ji are the y-values cor...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
ODE45 ERROR en el @odefun
Use dfidt=[dfi1;dfi2]; instead of dfidt=[dfi1(1);dfi2(2)]

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Error using plot. Data must be numeric, datetime, duration or an array convertible to double.
Arm = 5; T = 2; t = linspace(0,5*T,1000); t = t.'; hold on for N=0:Arm n = 1:N; A0 = 5/4*ones(size(t)); An= ...

mehr als 3 Jahre vor | 0

Beantwortet
Why do fit results and parameter confidence intervals depend on magnitude of units? Why are confidence intervals nonsense on a good fit?
Your model is not adequate because it needs 3 parameters, not 4. Write it as curvem(x) = a.*(x./b).^(-c) + d = a/b^(-c) * x^(-...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to observe parameter value existing in constraint while solving problem using "ga"
Add the line left_hand_side = E_prop + cumsum(sol.S.*(sum(Energy_Pr,2))) after the solution has been obtained.

mehr als 3 Jahre vor | 0

Beantwortet
selecting indices in a matrix and setting the rest to zero
A = rand(5,3); idx = [2 4].'; idx_left = setdiff(1:size(A,1),idx) A(idx_left,:) = zeros(numel(idx_left),size(A,2))

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I am trying to solve current equations of a pv cell using fsolve butit keeps showing error, can someone pls see what the error in my code is?
clc; clear all; Pmpp = 50; %Max Power Vmpp = 17.98; %Vol at Pmax Impp = 2.77; %Current at Pmax Isc= 3; ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Use one function in another
n = 7; a = [3 4 1 2 5 2 1]; A = createMatrix(n, a) period = findPeriod(A) function A = createMatrix(n, a) A = zeros(n);...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Bvp4c 2nd order equation with 2nd and 3rd order boundary conditions
Since you can only impose two boundary conditions for a second-order equation, take the first and the third. They should already...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Solve non linear m equations in n unknows with m,n
k = lsqnonlin(F,k0)

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can ı solve this difference equation ?
um2 = 0; um1 = 0; u0 = 1.5820; u1 = -0.5820; u2 = 0; xm2 = 0; xm1 = 0; x0 = 1.3679*xm1 - 0.3679*xm2 + 0.3679*um1 + 0.2642...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Variable not saving as a double
You mean t = 0:1:100; x = 0.5*exp(2*sin(t))./(10.5*exp(2*sin(t))); plot(t,x) (which is equal to 0.5/10.5=0.04761... because ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Constraints on Parameter Estimation
Use lsqlin instead of fitlm.

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
problem in creating function file using ode45
Be careful with the order of the solution vector Y. It is (y, Dy, x, Dx). You have to supply the vector of initial values "ic" i...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I plot two different functions on the same plot?
Use hold on plot(...) % plot first graph plot(...) % plot second graph hold off

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
solving series of algebric linear equations using for loop
N = 4; xleft = 1.0; xright = 3.0; x = linspace(xleft,xright,N+1); h = (xright-xleft)/N; A = zeros(N+1); b = zeros(N+1,1); ...

mehr als 3 Jahre vor | 0

Beantwortet
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
You don't define Kb as a global variable in the part of your code where you set it as Kb = physconst('boltzmann'); % 1.38*10^(-...

mehr als 3 Jahre vor | 1

Beantwortet
Projectile Motion when y0 does not equal 0
Solve y(t) = 0 for t and you'll find tf, the time when the projectile hits the ground.

mehr als 3 Jahre vor | 1

Beantwortet
Matrix "index in position 1 exceeds array bounds (must not exceed 1)"
i=1; X1(i)=0; X2(i)=0; X3(i)=0; error_X1(i)=9999; error_X2(i)=9999; error_X3(i)=9999; instead of i=1; X1=0; X2=0; X3=...

mehr als 3 Jahre vor | 0

Beantwortet
invalid expression error.
B = 0.02; a = 0.1; f = 0.53; phi = 3*pi/4; t = -5:0.05:10; x = B^a*exp (-a*t) .*sin(... 2*pi*f*t+phi); xu = x...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
please help i keep getting erro
samsonwork() function sol=samsonwork global Br Sc delta P K R n epsilon %x=linspace(-1,1,11); r=0:0.01:3; Br=1;Sc=0.4;n=3;d...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
fmincon: proble defining the function
f = @definefunction; instead of f=definefunction(x); And you cannot use random inputs on each call - thus comp1 = double(ra...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Finding linear combination of two vectors such as every element is positive
n = 5; v1 = -10 + rand(1,n)*20 v2 = -20 + rand(1,n)*40 % If there is a solution x for which A*x > zeros(size(A,1),1), then th...

mehr als 3 Jahre vor | 1

Beantwortet
User defined function within ode45
Symbolic functions like the one you get if you use the "piecewise" command are not allowed with ODE45. Either define the right-...

mehr als 3 Jahre vor | 0

Beantwortet
How can I do a Monte Carlo simulation for 1000 runs on this operation?
Maybe you mean: % A = T(:,1); %Column vector A = [71.213; 74.499; 79.175; 54.163; 83.008; 52.615]; B = length(A); %size of c...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can someone help me to correct the code ​​for this problem using ode45 solver?
This is a boundary value problem, not an initial value problem since conditions on f and theta are given on both ends of the int...

mehr als 3 Jahre vor | 1

Beantwortet
i dont know why there is no anwser about this 'solve'
Three equations need three unknowns, not only one. clc; close all; clear; a1=20; b1=20; k1=sqrt((a1+10)^2+b1^2)-sqrt((a1-...

mehr als 3 Jahre vor | 0

Mehr laden