Answered

How can i draw the graph of this two functions using matlab

when i have this like problem i use this code: t=linspace(0,2*pi,50); f=((t>0)&(t<=1)).*2+((t>1)&(t<=pi/2)).*0.5.*t.^2+((t>pi...

How can i draw the graph of this two functions using matlab

when i have this like problem i use this code: t=linspace(0,2*pi,50); f=((t>0)&(t<=1)).*2+((t>1)&(t<=pi/2)).*0.5.*t.^2+((t>pi...

12 mois ago | 0

Answered

Finding the length of square function

t2=t(find(diff(X)>0)); t1=t(find(diff(X)<0)); long_time=t2(2)-t1(2)

Finding the length of square function

t2=t(find(diff(X)>0)); t1=t(find(diff(X)<0)); long_time=t2(2)-t1(2)

12 mois ago | 0

Answered

How to create a sine wave with variable frequency - Simulink

something like this: (?) t=linspace(0,2*pi,100); f=rand(1,100); y=sin(f.*t); plot(t,y)

How to create a sine wave with variable frequency - Simulink

something like this: (?) t=linspace(0,2*pi,100); f=rand(1,100); y=sin(f.*t); plot(t,y)

12 mois ago | 0

Answered

Euler method returning error

maybe you need copy the function eulsys.m in your system. In this link you have a copy: http://macs.citadel.edu/chenm/344.dir/0...

Euler method returning error

maybe you need copy the function eulsys.m in your system. In this link you have a copy: http://macs.citadel.edu/chenm/344.dir/0...

12 mois ago | 0

Answered

how do i plot only certain part of cepstrum

KSSV ks suggests that you work with the index, here I show you an example of what KSSV mentions, x=linspace(0,10,100); y=x.^2;...

how do i plot only certain part of cepstrum

KSSV ks suggests that you work with the index, here I show you an example of what KSSV mentions, x=linspace(0,10,100); y=x.^2;...

12 mois ago | 0

| accepted

Answered

creating multiple values of the same x,y,z

x=[ 2, 4, 2]; repmat(x,10,1)

creating multiple values of the same x,y,z

x=[ 2, 4, 2]; repmat(x,10,1)

environ un an ago | 0

| accepted

Answered

no data plots on graph (plot (x,y))

David is correct. Why don't you try something like that in your code... d(1) = 32000; H = 8000; Re = 6370000; %c2 = 0.5*exp(...

no data plots on graph (plot (x,y))

David is correct. Why don't you try something like that in your code... d(1) = 32000; H = 8000; Re = 6370000; %c2 = 0.5*exp(...

environ un an ago | 0

| accepted

Answered

Invalid syntax error with a simple code

tray this x = [-2 -1.5 -1 -0.5 0 0.5 1 1.5 2]; y = (x+x.*(sqrt(x+3))).*(1+2*(x.^(2)));

Invalid syntax error with a simple code

tray this x = [-2 -1.5 -1 -0.5 0 0.5 1 1.5 2]; y = (x+x.*(sqrt(x+3))).*(1+2*(x.^(2)));

environ un an ago | 0

| accepted

Answered

How can I obtain slope of a trend line calculated for a time serie

Maybe this is useful for you https://www.mathworks.com/help/matlab/ref/detrend.html

How can I obtain slope of a trend line calculated for a time serie

Maybe this is useful for you https://www.mathworks.com/help/matlab/ref/detrend.html

environ un an ago | 0

Solved

Find the repeating elements and repetitions of a row vector.

So let's say that x is a vector, for example, x = [4, 4, 5, 5, 5, 6, 7, 7，8, 8, 8, 8] Now we want to get the following two ve...

environ un an ago

Answered

Why does my plot not appear?

Vmax = 354*10^(-6); Km = 1.5*10^(-3); S = .0000005:.0000005:.000030; v = Vmax*S./(Km + S); plot(S,v);

Why does my plot not appear?

Vmax = 354*10^(-6); Km = 1.5*10^(-3); S = .0000005:.0000005:.000030; v = Vmax*S./(Km + S); plot(S,v);

environ un an ago | 0

Answered

Multiple Iterations over a system of linear equations

I think the problem is where the plot function, maybe you need to put another command to plot in each iteration, something like ...

Multiple Iterations over a system of linear equations

I think the problem is where the plot function, maybe you need to put another command to plot in each iteration, something like ...

environ un an ago | 0

Answered

for loop and if-statement

This may help you Time=[0.5 1.51 2.6 3.65 4.71 6.8 7.9 9.1 10.3 11.1 12.3 15 16.2 17.3 18.5 19.6]; dife=diff(Time); heelstrik...

for loop and if-statement

This may help you Time=[0.5 1.51 2.6 3.65 4.71 6.8 7.9 9.1 10.3 11.1 12.3 15 16.2 17.3 18.5 19.6]; dife=diff(Time); heelstrik...

environ un an ago | 0

| accepted

Solved

Vertical matrix sort

Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...

environ un an ago

Solved

Diagonal Pattern

For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

environ un an ago

Answered

"Z must be a matrix, not a scalar or vector." PLEASE HELP!

x1 = 1:.1:4; x2 = 1:.1:4; [X,Y] = meshgrid(x1,x2); Z= ps2func(X,Y); mesh(X,Y,Z) grid on hold on function [f]=ps2func(x...

"Z must be a matrix, not a scalar or vector." PLEASE HELP!

x1 = 1:.1:4; x2 = 1:.1:4; [X,Y] = meshgrid(x1,x2); Z= ps2func(X,Y); mesh(X,Y,Z) grid on hold on function [f]=ps2func(x...

environ un an ago | 1

Answered

Converting Euler's method calculation into matlab

tray this: % Initial conditions and setup Q=400; A=1200; alph=160; h = 0.5; % step size t = 0:0.5:10; % the range of t ...

Converting Euler's method calculation into matlab

tray this: % Initial conditions and setup Q=400; A=1200; alph=160; h = 0.5; % step size t = 0:0.5:10; % the range of t ...

environ un an ago | 1

| accepted

Answered

Lotka-Volterra Predatir Prey Model Code

using this: function [dPdt] = lotkavolterra(t,P) alpha = 1.5; % you have error here: you using alpa beta = 1; gamma = 3; de...

Lotka-Volterra Predatir Prey Model Code

using this: function [dPdt] = lotkavolterra(t,P) alpha = 1.5; % you have error here: you using alpa beta = 1; gamma = 3; de...

environ un an ago | 0

| accepted

Solved

Counting Sequence

Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

environ un an ago