Ann Little
Followers: 0 Following: 0
Feeds
提问
How to use linspec
given the question: Determine z = 2x^3 + 3y^2 + 5, when x and y vary from -4 to 4 with a spacing of 1. solution: x = linspace...
5 years 前 | 2 个回答 | 0
2
个回答提问
how to solve system of equation using Gaussian Elimination or Gauss-Jordan
How would I solve for x,y,z variables for this given system of equations using Gaussian elimination or Gauss-Jordan Elimination ...
5 years 前 | 1 个回答 | 0
1
个回答提问
I am a single function script called ‘TemperatureConvert.m’ that inputs some temperature in Celsius and outputs the temperature in Celcius, Kelvin, and Fahrenheit.
Knowing °K = °C + 273, and °F = ((9/5)* °C) + 32. I created the first script defining a function: function [kelvin, faren...
6 years 前 | 1 个回答 | 0
1
个回答提问
I am confused as to how incorporate a value from another function in a different script, into this one where the y variable is now the input. The actual problem is below. Please show me how to solve this, and why.
Initialize a variable x that ranges from –π to +π, with an interval of 0.01. . Create a square wave variable by using the equat...
6 years 前 | 2 个回答 | 0
2
个回答提问
I need to create a function named 'HeavisideFunct' which requires a single input x, and outputs y, which is the Heaviside step function (Equation 5). Where H(x) = 0 for x<0; 1 for x > 0; 0.5 for x = 0.
I have done the following, and it gives me an answer for y when a variable for x is inputed, but I need to be able to show that ...
6 years 前 | 1 个回答 | 0
1
个回答提问
I have a script called “FourierSeries.m”, which computes the Fourier Series of a square wave. A variable x ranges from –π to +π, with an interval of 0.01. Create a square wave variable by using the equation: ?(?) = (2 ∗ ?(x))-1.
H(x) = 0 when x < 0; 1 when x > 0; 0.5 when x = 0 I current have the follwing in my script but I am not getting a plotted figur...
6 years 前 | 1 个回答 | 0
1
个回答提问
I have created a function with y as the output and x as input. how do i put statements saying that if x < 0, y = 0; if x > 0, y = 1; if x = 0, y = .5. I have done it trying to do three separate if statements within the same function as shown below.
function [y] = HeavisideFunct(x) y = 0 if x < 0 disp(y) end y = 1 if x > 0 disp(y) e...
6 years 前 | 2 个回答 | 0