Statistics
全部
内容提要
回答
全部I think is to get a sine wave function when plotting T vs A(1), but I didn't get any output. help me to modify this program
format short a = 0; b = 4; h = 0.1; V =1E-5; I1 = 0.2; I2 = 0.8; o = 3.5; % what is this variable ? tc = 3.0; % tf = ...
全部I think is to get a sine wave function when plotting T vs A(1), but I didn't get any output. help me to modify this program
format short a = 0; b = 4; h = 0.1; V =1E-5; I1 = 0.2; I2 = 0.8; o = 3.5; % what is this variable ? tc = 3.0; % tf = ...
5期前|0
|公认
回答
与差距的绘图号
clc clear close all; T=[1.96E-5, 2.18E-5, 6.09E-4, 6.04E-4, 6.11E-4]; S=[1.94E-5, 1.96E-5, 1.98E-5, 2.06E-5, 1.49E-4...
与差距的绘图号
clc clear close all; T=[1.96E-5, 2.18E-5, 6.09E-4, 6.04E-4, 6.11E-4]; S=[1.94E-5, 1.96E-5, 1.98E-5, 2.06E-5, 1.49E-4...
18 jours ago | 0
回答
How do I specify range for my x axis using the plot function
x = linspace(-2*pi,6*pi);%在这里给出这些值y = cos(x);情节(x,y)
How do I specify range for my x axis using the plot function
x = linspace(-2*pi,6*pi);%在这里给出这些值y = cos(x);情节(x,y)
18 jours ago | 0
回答
如何让我的情节只能达到“ n”的价值
stem(Y(1:20)) You could also use the same number datapoints in Y vector while plotting
如何让我的情节只能达到“ n”的价值
stem(Y(1:20)) You could also use the same number datapoints in Y vector while plotting
19期前|0
回答
How to plot three different graphs in same window using subplots , animated line and adpoints . I have submitted my code in text box please help to run this three graphs
CLC;close all; t = -3:0.01:3; x=@(t) exp(-t).*(t>0)+ 0.5*(t==0); xa=x(t); xe=( x(t)+x(-t))/2; x0=(x(t)-x(-t))/2; subplot(...
How to plot three different graphs in same window using subplots , animated line and adpoints . I have submitted my code in text box please help to run this three graphs
CLC;close all; t = -3:0.01:3; x=@(t) exp(-t).*(t>0)+ 0.5*(t==0); xa=x(t); xe=( x(t)+x(-t))/2; x0=(x(t)-x(-t))/2; subplot(...
环境未来|0
回答
For loop not working
a = rand(2,4)对于i = 1:使用单个值b(:,i)= a(:a)= a(:a)= a(a)。/百分比将每个元素与该元素分配...
For loop not working
a = rand(2,4)对于i = 1:使用单个值b(:,i)= a(:a)= a(:a)= a(a)。/百分比将每个元素与该元素分配...
环境未来|0
|公认
回答
Write Standard Deviation Distance
v = [10 12 14]; x = [7 7 7]; % length of x vector (weights) for each element and to be same as vector v dist = standard_deviat...
Write Standard Deviation Distance
v = [10 12 14]; x = [7 7 7]; % length of x vector (weights) for each element and to be same as vector v dist = standard_deviat...
环境未来|0
回答
How to plot square root of a function?
x1 = 0:0.01:10; % check with small intervals y = sqrt(1-(x1).^2); plot(x1,real(y)); ylim([-1 1.5]) If you use small inter...
How to plot square root of a function?
x1 = 0:0.01:10; % check with small intervals y = sqrt(1-(x1).^2); plot(x1,real(y)); ylim([-1 1.5]) If you use small inter...
环境未来|0
|公认
回答
How can i run correctly my Backward Difference Formula code ?
%% Backward Difference Formula Method %% clc; clear all; h=0.01; t=0:h:1; n=numel(t); mu = [20 -20] hold all for k = 1:le...
How can i run correctly my Backward Difference Formula code ?
%% Backward Difference Formula Method %% clc; clear all; h=0.01; t=0:h:1; n=numel(t); mu = [20 -20] hold all for k = 1:le...
环境未来|0
回答
dn /dt = s +(g*n*t^2) /(h + t^2) - (c*t -p*d -q*l)*n-(z*m*n) - (e*n)
f = @(t,n)(s+((g*n*t^2)/(h+ t^2)) - ...)%将小案例t更改为toper case t,然后尝试f是t的功能和n,不小...
dn /dt = s +(g*n*t^2) /(h + t^2) - (c*t -p*d -q*l)*n-(z*m*n) - (e*n)
f = @(t,n)(s+((g*n*t^2)/(h+ t^2)) - ...)%将小案例t更改为toper case t,然后尝试f是t的功能和n,不小...
环境未来|0
|公认
回答
Error using / Arguments must be numeric, char, or logical.
y=@(t) 2.718.^(-t/5)-(2.718.^(-t/5).*t)/5; t=0:1:10; plot(t,y(t)) Define the equation as anonymous function and plot
Error using / Arguments must be numeric, char, or logical.
y=@(t) 2.718.^(-t/5)-(2.718.^(-t/5).*t)/5; t=0:1:10; plot(t,y(t)) Define the equation as anonymous function and plot
Environ 2 Mois前|0
回答
带有两个X轴和显示杆的杆图
X = 2010:2019;y = rand(1,10);%1 y6 = rand(1,10);%2 yyaxis左%ax = gca;%ax.yaxis.exponent = 2;b = bar(x,[y; y6]); ...
带有两个X轴和显示杆的杆图
X = 2010:2019;y = rand(1,10);%1 y6 = rand(1,10);%2 yyaxis左%ax = gca;%ax.yaxis.exponent = 2;b = bar(x,[y; y6]); ...
Environ 2 Mois前|0
回答
Not enough input argument in ode45
[t,x] = ode45(@mastersystem,[0 10],[0 0 0 0 0 0 0]);%使用函数句柄将函数作为参数图(t,x)函数D ...
Not enough input argument in ode45
[t,x] = ode45(@mastersystem,[0 10],[0 0 0 0 0 0 0]);%使用函数句柄将函数作为参数图(t,x)函数D ...
Environ 2 Mois前|0
回答
What's wrong with my distribution function?
X = -100 : 1 : 100; Y = -100 : 1 : 100; k = 4; G = gamma(k/2) [ XX, YY ] = meshgrid( X, Y ); A = ( XX ).^2 + ( YY ).^2; A ...
What's wrong with my distribution function?
X = -100 : 1 : 100; Y = -100 : 1 : 100; k = 4; G = gamma(k/2) [ XX, YY ] = meshgrid( X, Y ); A = ( XX ).^2 + ( YY ).^2; A ...
Environ 2 Mois前|1
回答
Plot measured Filter data
T = readtable('Plot.xls') frequency = T{(22:109),1}; % change this to ffequency gain = T{(22:109),2}; phase = T{(22:109),...
Plot measured Filter data
T = readtable('Plot.xls') frequency = T{(22:109),1}; % change this to ffequency gain = T{(22:109),2}; phase = T{(22:109),...
Environ 2 Mois前|0
|公认
回答
MATLAB索引问题-PI:PI
amin=0.2; theta = -pi:pi/2:pi; gamma=0:0.5:3; for T=1:length(theta) for G = 1:length(gamma) phi=amin-(-pi/2); ...
MATLAB索引问题-PI:PI
amin=0.2; theta = -pi:pi/2:pi; gamma=0:0.5:3; for T=1:length(theta) for G = 1:length(gamma) phi=amin-(-pi/2); ...
Environ 2 Mois前|0
|公认
回答
phase shift using xcorr
t = 1 :0.1: 20; phaseshift= pi/2; s1 = sin(2*t); s2 = sin(2*t+ phaseshift); figure(1); clf; plot (t...
phase shift using xcorr
t = 1 :0.1: 20; phaseshift= pi/2; s1 = sin(2*t); s2 = sin(2*t+ phaseshift); figure(1); clf; plot (t...
Environ 2 Mois前|0
回答
我试图找到以下传输函数的积分增益(KI)。
syms ki ki = 10 % e.g numeric values , not symbolic sys = tf([30.672 175.694*ki],[1 38.672 175.694*ki]); S = stepinfo(sys); ...
我试图找到以下传输函数的积分增益(KI)。
syms ki ki = 10 % e.g numeric values , not symbolic sys = tf([30.672 175.694*ki],[1 38.672 175.694*ki]); S = stepinfo(sys); ...
Environ 2 Mois前|0
回答
Hold on with subplot in a loop
A={[40;50;60] [70;80;90] [20;30;50]}; B={[45;55;65] [75;85;95] [25;35;55]}; T=[1;2;3]; figure(1) % use this outside of l...
Hold on with subplot in a loop
A={[40;50;60] [70;80;90] [20;30;50]}; B={[45;55;65] [75;85;95] [25;35;55]}; T=[1;2;3]; figure(1) % use this outside of l...
Environ 2 Mois前|0
回答
Question about the inability to display 16k octave bands(1/3 oct band)?
if fs==22050 fc=1000*2.^((-6:1:2)); fctxt={'16','32','63','125','250','500','1k','2k','4k'}; else fc=1000*...
Question about the inability to display 16k octave bands(1/3 oct band)?
if fs==22050 fc=1000*2.^((-6:1:2)); fctxt={'16','32','63','125','250','500','1k','2k','4k'}; else fc=1000*...
Environ 2 Mois前|1
|公认
回答
使用FDE12错误
s = 1:4; % define s vector passed as argument to function line below e.g. values sdot = @(t,s)[A-(e*s(1)*s(2))-(a*s(1)*s(3))+...
使用FDE12错误
s = 1:4; % define s vector passed as argument to function line below e.g. values sdot = @(t,s)[A-(e*s(1)*s(2))-(a*s(1)*s(3))+...
Environ 2 Mois前|0
回答
我的代码中的错误
清晰的SYMS X%SYMS F = ATAN(x);t5 =泰勒(f,x,'order',5);t7 =泰勒(f,x,'order',7);fplot(x^3/3+x,[ - pi pi],'b')保持o ...
我的代码中的错误
清晰的SYMS X%SYMS F = ATAN(x);t5 =泰勒(f,x,'order',5);t7 =泰勒(f,x,'order',7);fplot(x^3/3+x,[ - pi pi],'b')保持o ...
Environ 2 Mois前|2
回答
我对我的方程式进行了一些修订,但我仍然没有答案。它说没有足够的输入论点。有人可以帮帮我吗?
x0=[150;150;150;150;150;150;150]; % x = 1:7; % give input vector to fucntion sol=fsolve(@rle,x0) % call the function using fu...
我对我的方程式进行了一些修订,但我仍然没有答案。它说没有足够的输入论点。有人可以帮帮我吗?
x0=[150;150;150;150;150;150;150]; % x = 1:7; % give input vector to fucntion sol=fsolve(@rle,x0) % call the function using fu...
Environ 2 Mois前|0
|公认
回答
如何使用FPLOT绘制OUT OUT的ode eqution解决方案?
% this code is used to show how to use ode in matlab, via a simple problem % for serios RC circuit with DC supply clc;clear a...
如何使用FPLOT绘制OUT OUT的ode eqution解决方案?
% this code is used to show how to use ode in matlab, via a simple problem % for serios RC circuit with DC supply clc;clear a...
2 Mois前|1
|公认
回答
How can I store the whole diagonal and not only the first element (For loop)
% Part 3.1: Diagonal %A rng('default') r2 = randi(100,3,3); % Creating a 3x3 matrix, with random values from 1 to 100 %B ...
How can I store the whole diagonal and not only the first element (For loop)
% Part 3.1: Diagonal %A rng('default') r2 = randi(100,3,3); % Creating a 3x3 matrix, with random values from 1 to 100 %B ...
2 Mois前|0
|公认
回答
Having trouble writing a multiple gravitational physics simulation code, as every planet effects one another.
a(q,:)=(sum(f(q:(q+o-1),:)))./ ass(q);%计算每个行星v(q,:)= v(q,:)+a(q,:)*ts;%calula ...
Having trouble writing a multiple gravitational physics simulation code, as every planet effects one another.
a(q,:)=(sum(f(q:(q+o-1),:)))./ ass(q);%计算每个行星v(q,:)= v(q,:)+a(q,:)*ts;%calula ...
2 Mois前|0
回答
Trouble graphing this non-linear function
x = 1:100;y =((fortorial(x))。^(1./x))./x;%使用元素明智的fplot(y,[0 100])%函数和par之间的无空间...
Trouble graphing this non-linear function
x = 1:100;y =((fortorial(x))。^(1./x))./x;%使用元素明智的fplot(y,[0 100])%函数和par之间的无空间...
2 Mois前|0
回答
我正在尝试从复杂函数生成的系列,但它给我一个错误。
清除;CLC;Syms K Delta = 0;chi = 0;theta = 0;alpha = 5;phi = 0;bn = exp(-0.5*alpha^2)*(alpha^k)/sqrt(gamma(k+1));BN1 = EXP(-0 ...
我正在尝试从复杂函数生成的系列,但它给我一个错误。
清除;CLC;Syms K Delta = 0;chi = 0;theta = 0;alpha = 5;phi = 0;bn = exp(-0.5*alpha^2)*(alpha^k)/sqrt(gamma(k+1));BN1 = EXP(-0 ...
2 Mois前|0