Community Profile # VBBV

### PEC

Last seen: 1일 전 2017 이후 활성

Programming in MATLAB applied to interdisciplinary engineering fields

#### Statistics

All
• • • • • • • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
plot numbers with gap
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...

10일 전 | 0

답변 있음
How do I specify range for my x axis using the plot function
x = linspace(-2*pi,6*pi); %give those values here y = cos(x); plot(x,y)

10일 전 | 0

답변 있음
how to get my plot to only go to the value of 'n' I have set
stem(Y(1:20)) You could also use the same number datapoints in Y vector while plotting

12일 전 | 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(...

23일 전 | 0

답변 있음
For loop not working
A = rand(2,4) for i=1:length(A) % using a single value B(:,i) = A(:,i)./sum(A(:,i)); % divide each element with sum of that...

24일 전 | 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...

26일 전 | 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...

27일 전 | 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...

약 1달 전 | 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)) - ...) % change small case t to Upper case T and try f is function of T and N and not small...

약 1달 전 | 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

약 1달 전 | 0

답변 있음
Bar plot with two x axis and Display Groups of Bars
x = 2010:2019; y = rand(1,10); % 1 y6= rand(1,10); % 2 yyaxis left %ax = gca; %ax.YAxis.Exponent = 2; b = bar(x,[y;y6]);...

약 1달 전 | 0

답변 있음
Not enough input argument in ode45
[t,x] = ode45(@mastersystem,[0 10],[0 0 0 0 0 0]); % use a function handle to pass function as argument plot(t,x) function d...

약 1달 전 | 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 ...

약 1달 전 | 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),...

약 1달 전 | 0

| 수락됨

답변 있음
matlab indexing issue with range -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); ...

약 1달 전 | 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...

약 1달 전 | 0

답변 있음
I am trying to find the integral gain (ki) of the following transfer function.
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); ...

약 1달 전 | 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...

약 2달 전 | 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*...

약 2달 전 | 1

| 수락됨

답변 있음
Error using 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))+...

약 2달 전 | 0

답변 있음
An error in my code
clear syms x % syms F= atan(x); t5= taylor(F,x,'order',5); t7= taylor(F,x,'order',7); fplot(x^3/3+x,[-pi pi],'b') hold o...

약 2달 전 | 2

답변 있음
I do some revisions to my equation but I still got no answer. It says that there is no enough input argument. Can someone please help me?
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...

약 2달 전 | 0

| 수락됨

답변 있음
Pcolor Plot returning error Color data input must be a matrix.
h = pcolor(X1, Y1, z); % use X1, Y1 instead of x1 , y1, z must be 21x26 matrix

약 2달 전 | 0

답변 있음
how to plot solution of ODE eqution with out using fplot ?
% 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달 전 | 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 ...

약 2달 전 | 0

| 수락됨

답변 있음
Why is ySol(t) = Dsolve(ode,cond) wrong? What should it be instead?
y=eval(ySol(t))% Use ySol(t) to evaluate

약 2달 전 | 0

답변 있음
Having trouble writing a multiple gravitational physics simulation code, as every planet effects one another.
a(q,:)=(sum(F(q:(q+o-1),:)))./mass(q); %Calculate acceleration of each planet v(q,:)=v(q,:)+a(q,:)*ts; %calula...

약 2달 전 | 0

답변 있음
Trouble graphing this non-linear function
x = 1:100; y = ((factorial(x)).^(1./x))./x; % use element wise division fplot(y,[0 100]) % no space between function and par...

약 2달 전 | 0

답변 있음
I am trying to a series generated from complex function but it gives to me an error.
clear; 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달 전 | 0

답변 있음
using for loops to calculate compound interest with yearly contributions
N=17804; P=1000; C=1000; r=(10/100); I = 1; while P<=N y(I)=(P*(1+r)); % use an index for desired amount, P=y(I)...

2달 전 | 0