Respondida
Solving differential equation with Runge Kutta 4th order
a=0; b=1; %Stepsize h=0.05; %time interval and initial value t=(a:h:b)'; x(1)=0.032; parameter=0.15; t1=zeros(siz...

alrededor de 4 años hace | 1

| aceptada

Respondida
fix the indices of the matrix
close all;clear;clc; load('ecg_sbj1.mat') sig=ecg N=length(sig); fs=200; t=[0:N-1]/fs b=1/32*[1 0 0 0 0 0 -2 0 0 0 0 0 1];...

alrededor de 4 años hace | 0

Respondida
solving diffrential equation systems
v1=1000; v2=1500; v3=100; k1=.1; k2=.2; k3=.4; syms f(t) g(t) y(t) eq1 = diff(f)==((1/v1)*(1000+100*g-1100*f-k1*v1*f)) ...

alrededor de 4 años hace | 0

Respondida
Frequency plot not working properly when using IFFT
time_step=(Time(2)-Time(1)); Check with timestep. It may not be constant difference between first two values in _Time_ vect...

alrededor de 4 años hace | 0

| aceptada

Respondida
Plot X, Y, Z axes with respect to time
x_back_accel = cell2mat(backside_accel(:,1)); y_back_accel = cell2mat(backside_accel(:,2)); z_back_accel = cell2mat(backside...

alrededor de 4 años hace | 0

Respondida
Unable to solve this coupled boundary value differential Equation
if iterator1==1 ic = [p21 1 0 0 p11]; [T,Y] = ode45(@(T,Y) ftotal(Pr,T,Y), etaspan, ic); m21=Y(end,1...

alrededor de 4 años hace | 0

Respondida
How can I assign multiple inputs into variables
%% Calculation %Station 1 R = 287; %Gas constant T01= 339; %Stagnation Temperature or total inlet temperature Patm = 10132...

alrededor de 4 años hace | 0

Respondida
How to Combine ODE Plots with Different Initial Concentration
Rentang = linspace(0, 48, 50); C0 = [0.2781456954 5.197889182 52.77015848]; %biomass, substrate, product initial concentration ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Table shows 1x1 sym
function s = angle(r2,a2) Change the return value in function to s

alrededor de 4 años hace | 0

Respondida
Generation of error matrix from AR(1) model, issue
t=5; n=10; u_t = randn(1,n) %innovation term epsilon = zeros(t,n); %preallocation rho=0.5; %parameter ρ for the AR(1) model ...

alrededor de 4 años hace | 0

| aceptada

Respondida
I am facing problem with the code which i giving below.
% Solving ODE for Pendulum clear all close all clc t = [0 30]; theta0 = [30 0 0]; L = 5; m = 2; g = 9.8;...

alrededor de 4 años hace | 0

Respondida
HOW TO PLOT SINGLE GRAPH OF TWO EQUATION WHICH IS CONDITIONALLY SATISFIED
clear all; Vds=0:0.01:.3; Vt=0.4; Vgs=0.6; Mn=398*10^-4; Cox=9.99*10^-10; p=2; k=Mn*Cox*p; for kk = 1:length(Vds) if Vds(k...

alrededor de 4 años hace | 0

Respondida
Plotting a high order function
plot(x,f2(x),'.k') give the necessary input values to functions created.

alrededor de 4 años hace | 0

| aceptada

Respondida
Saving values of a variable in while loop
errorVal(n,:)=sum(error(:));

alrededor de 4 años hace | 0

Respondida
Two y axis with the same data set
dk = 1000; dB = linspace(0.002,dk,7)*1e-6; % in micrometer Sg = linspace(0.001,20,7); hold all M = rand(7); t = ti...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to check for size of input vector
A = [1 , 5]; % compare the size of vector entered by user is 1 X 5 B = [5 , 1]; % compare the size of v...

alrededor de 4 años hace | 0

Respondida
Hello, while i am running a linear equation it is showing that Row dimension of Aeq is inconsistent with length of beq. I am sharing the problem below
clear all x0=[0 0]; A=[1 1;3 1]; b=[50;90]; lb=[0 0]; ub=[1 1] Aeq =[] Beq = [] [x,fval,exitflag,output]=fmincon(@second...

alrededor de 4 años hace | 0

Respondida
why is my plot only showing 1 diagonal line
clear close all t=0; V = 0; dt = 0.1; S = 3; CD = 0.1; T = 10000; m = 500; % plot(t,V) hold all while t<=10 i...

alrededor de 4 años hace | 0

Respondida
Obtain rho and pval values from a loop of data measurements
[rho(i,:),pval(i,:)] = corr(x, y, 'type', 'Pearson');

alrededor de 4 años hace | 0

| aceptada

Respondida
Plotting of different nonlinear equations in different ranges segment wise in a single graph
A = 0:0.1:2; b = 0.3; c = 0.7; y0 = 0; % y = 1:10; for i = 1: numel(A) x = A(i); if (A(i)<=c) & (A(i)<b) ...

alrededor de 4 años hace | 0

| aceptada

Respondida
REgarding plotting of graph in matlab
ylim([15 25])

alrededor de 4 años hace | 1

| aceptada

Respondida
I am using block matlab function but i got this error. ''Size mismatch (size [4 x 4] ~= size [1 x :?]). The size to the left is the size of the left-hand side of the assignme'
Give input to function variable, _w_ as scalar value instead of vector. E.g. w = 2; and not w = [2 3 4]

alrededor de 4 años hace | 0

Respondida
The following Error during exporting a reconstruction or a model. How to resolve this
tmp_anno = strcat( tmp_anno,' <p>' ,model.modelAnnotation(i), '</p>'); % ^ ^ Change to ()...

alrededor de 4 años hace | 0

Respondida
In this coding when i am giving m2=0 value, why no graph is coming?
When m2 is zero, the ode45 returns NaN values. That's why you don't see the graph

más de 4 años hace | 1

Respondida
'Index exceeds the number of array elements ' why this error is showing?
I = 0:0.1:20; y = [0 0]; %% Solve using ode45 [tsol,ysol] = ode45(@my_ode_without_tld,[0 10],[0;1]); %% plotting plot(tsol,...

más de 4 años hace | 1

Respondida
MATRIX MANUPULATION IF CONDTION NOT WORKING
for i = 1:4 if M(i,2)<9 & M(i,2) >4 M(i,4)=0; end end Close the parenthesis and run it.

más de 4 años hace | 1

| aceptada

Respondida
Error'incorrect dimensions for matrix multiplication'
phis=3; phib=8; zeta=-.95:0.5:10; Eg=[-2.9583 5.2519 -6.5456 5.2455 -0.4883 -7.0614 -6.5562] xi=[1 1 1 1 1 1]; for n=1:1:6 ...

más de 4 años hace | 0

Respondida
Help plotting a graph
% Given Ma=0.44 deltaH=17940; W_cp=0.97; P_a=12.93252; m_dot=26; T_t4=2150; T_a=506.21; gamma=1.4; R=53.35; Cp=0.239...

más de 4 años hace | 1

| aceptada

Respondida
Unable to perform assignment because the size of the left side is 98-by-50 and the size of the right side is 98-by-32.
XTrain{idx} = extract(afe,xPadded);% cell array Use curly brackets just like _XTrainC_

más de 4 años hace | 0

Respondida
Replace -99 with NaN
Data = load('precip.txt'); % use load function Data(Data == -99) = NaN Use load function instead of readtable and try with co...

más de 4 años hace | 0

Cargar más