Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3,
output = [4 4 4]
Hint:
Search for the function...
6 years ago
Solved
Log of a number
Write a script that will give the log of x as output.
Answered charachtristic equation in Matlab
function a = u(x,t)
a=zeros(size(x));
a(x<=2*t)=1;
a(x>=1+t)=0;
a(x<1+t&x>2*t)=(1+t(x<1+t&x>2*t)-x(x<1+t&x>2*t))./(1-t(x<1+t...