已回答
converting date and time string to datetime object
k = 1; while k<=length(Ionotable.x_Time) x = (Ionotable.x_Time(k)) %x_Time is the column where the date and tie values...

4 years 前 | 0

| 已接受

已回答
Having errors in a multivariable for loop.
temp_int=24; temp_ext=10; U=5; hi=4; h=1:5; temp_diff=(U/hi)*(temp_int-temp_ext); I = 0:0.1:2.5; x = 0:0.1:2.5; n=...

4 years 前 | 1

| 已接受

已回答
need to use this analytical solution to plot the absolute percent error in the concentration A at each time step for Euler's method
nsteps = 12; t = zeros (nsteps,1); A = zeros (nsteps,1); B = zeros(nsteps, 1); P = zeros(nsteps,1); A(1) = 1; B(1) = 3; C...

4 years 前 | 0

已回答
Finite Difference Centre Time Centre Space
%Set up plots to solve linear advection equation using a CTCS scheme u = 2.0; %Set constant velocity value nx=51; %Number of G...

4 years 前 | 0

已回答
I keep getting an error. Help
tspan = [0:0.05: 8]; y = [0.4; 0]; [t , y]= ode45(@odefun, tspan, y); plot (t, y(:, 1)); xlabel ('t'); ylabel ('y(1'); tit...

4 years 前 | 0

已回答
How to give a piecewise function as input
clear all clc syms t s y(t) Y dy(t)=diff(y(t)); d2y(t)=diff(y(t),2); F = [-1 1 16]; %input('Input the coefficients [a,b,c]:...

4 years 前 | 0

已回答
my plot for current vs speed of an energy efficient vs standard efficiency induction machine is not showing any values
clear s=0.0005:0.0005:1; %Slip [pu] f = 50; p = 4; ns=120*f/p; n=(1-s)*ns; R1=1.1; X1 = 0.2; Xm = 1e-3; R2 = 3.4; X2...

4 years 前 | 0

已回答
My Fourier Series plotter isn't outputting correct y-values
plot(yfit(1:Ts:end)) % plot your fourierseries It seems you have already computed the fourier series, To visualize the smooth...

4 years 前 | 0

已回答
User input changes circle radius and velocity
v=10;%input('Please provide a particle velocity: \n'); r=5; %input('Please provide a radius: \n'); e.g. radius here x0 = -...

4 years 前 | 0

已回答
Not enough input arguments.
clear all; close all; clc; % phi=0.9*pi; phi0=pi/3; phi=0:0.1:2*pi; %%PRC Type-1: z=(1-cos(phi)).*exp(3*(cos...

4 years 前 | 0

| 已接受

已回答
If loop to use different formulae under different conditions
P_load=832.40; P_unload=901.35; rho=1.2; R= 0.287; T_std=293; T_stdf=((T_std-273)*(9/5))+32; T_atm=304; T_atmf=...

4 years 前 | 0

已回答
How to plot constant vector field: f(x,y)=2 ax + ay
x=-3:3; y=-5:5; [x,y]=meshgrid(x,y); u=repmat(2,length(x),7); v=repmat(1,length(x),7); quiver(x,y,u,v)

4 years 前 | 0

| 已接受

已回答
Radar scattering coefficient plot
clc clear all close all theta=0:0.1:90; K=linspace(0,50,length(theta)); sc=K.*exp(-theta./30); polarplot(theta*pi/180,sc...

4 years 前 | 0

| 已接受

已回答
Plot Straight Line Segments
yline(200); xlim([0 20]);

4 years 前 | 0

已回答
How to use writetable in a for loop
T{k} = regionPropertiesTable(31,4) Use a cell array for all participants. Later use writetable(T) Outside of loop

4 years 前 | 1

| 已接受

已回答
Question on summing function handles
for j = 1:length(N1) % remaining code here S1 = @(t,x) ((-56.*(1-sqrt((x-xj).^2+(t-tj).^2)).^6.*(35*sqrt((x-xj).^2+(t-...

4 years 前 | 0

| 已接受

已回答
How to plot multiple graphs using different values for one of the variables?
for sigmaR=[20,60,8,450,35,5] % put this in [ ] plot(f,alphat) hold on end Put the loop vector in [ ] and use ho...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 1

| 已接受

已回答
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];...

4 years 前 | 0

已回答
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)) ...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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 ...

4 years 前 | 0

| 已接受

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

4 years 前 | 0

已回答
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 ...

4 years 前 | 0

| 已接受

已回答
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;...

4 years 前 | 0

已回答
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...

4 years 前 | 0

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

4 years 前 | 0

| 已接受

加载更多