Feeds
提问
How would I type this into matlab x(t) = e^(-2*abs(t)) y=x(t-5)
my t=[0:0.1:10-0.1] My x function is exp(-2*abs(t)) how would i allow this to work on matlab y(t) = x(t-5)
8 years 前 | 1 个回答 | 0
1
个回答提问
Numerical Approximation to the continuous time fourier transform
Calculate samples Y(jw_k) by typing Y=fftshift(tau*fft(y)) >> syms t; >> format compact >> x=symfun(exp(-2.*abs(t)),t); >>...
8 years 前 | 1 个回答 | 0
1
个回答提问
What is the smallest period?
My function is x(t) = cos(omega*t)+sin(2*omega*t) omega is 2pi. The books want me to use my vector as t=linspace...
8 years 前 | 0 个回答 | 0
0
个回答提问
How do you find intersection on a graph using the graph settings.
I wanted to find the intersection of these two functions but I do not want to do it in matlab coding, I want to use the tools on...
9 years 前 | 1 个回答 | 0
1
个回答提问
Implementing Heun's first order ODE
This what I have so far function[t,y]=heun(f,a,b,h,y0) n=(b-a)/h; t=[a];y=[y0]; for k=2:n+1, t=[t; a+(k-1)*h]; y=[y; y...
9 years 前 | 0 个回答 | 0
0
个回答提问
Can the double-precision floating point number 0.72 be represented exactly in Matlab? Explain.
Can the double-precision floating point number 0.72 be represented exactly in Matlab? Explain. This is one of my practice probl...
9 years 前 | 1 个回答 | 0
1
个回答提问
Can you explain how a number smaller than realmin can still be represented using 64-bit floating point representation?
Just trying to understand 64-bit a little more. I understand that realmin pulls the smallest positive number and that's about it...
9 years 前 | 1 个回答 | 0
1
个回答提问
What is wrong with my fprintf?
I am trying to print out the value of y to be 6 decimals, if I type it as format long or short it pops out those lengths. I am t...
9 years 前 | 2 个回答 | 0
2
个回答提问
Adding two polynomial(anonymous)
How do I add two anonymous function to define the polynomials. a=@(x) x.^3 + 6*x.^2 + 11*x +6; >> b=@(x) x.^2 - 2*x +1; ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Is this the right way to put this equation in?
>> format short >> p=[1 6 11 6]; >> r=roots(p) r = -3.0000 -2.0000 -1.0000 <</matlabcentral/answers/...
9 years 前 | 0 个回答 | 0
0
个回答提问
How to get rid of zeros in vector ans?
function y = realvalue3(x) n=1; while n<= length(x) if abs(x(n))>=10^-12 y(n)=x(n); n=n+1; ...
9 years 前 | 2 个回答 | 0
2
个回答提问
How to make vectors zero when adding two different size vectors?
I know how to make vectors add such as x=[1 2 3] and y=[-1 2 -1] and it should return as [0 4 2] But when adding two different ...
9 years 前 | 1 个回答 | 0
1
个回答提问
How do you make a program read a function for a script and creating a function?
<</matlabcentral/answers/uploaded_files/68519/2017-01-28_1200.png>> I am very new to matlab. So sorry if I am a noob at progr...
9 years 前 | 3 个回答 | 0
