Ali Kiral
Followers: 0 Following: 0
Feeds
질문
Euler's identity with angle in degrees
How can I get MATLAB to accept a in degress in exp(aj) to return a complex number where j^2=-1? By default the software takes a ...
1년 초과 전 | 답변 수: 3 | 0
3
답변질문
Adaptive step size solver for an ODE
This question involves both mathematics and MATLAB. I am trying solve an ordinary differential equation numerically, dy/dt=10*ex...
거의 2년 전 | 답변 수: 1 | 1
1
답변질문
integral command with function handle
Why do I get an error message with the following piece of script? Everything seems OK (I use R2014a by the way) func=@(x) exp(...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
fprintf with complex numbers and ordinary arrays
%Enter coefficients in a descending order N=input('Enter the degree of the main polynomial '); for k=1:N+1 Pol1(k)=input(...
대략 2년 전 | 답변 수: 1 | 0
1
답변질문
Printing cell array elements
Below script is an application of Newton's method to solve a set of nonlinear equations. Here we have 3 equations in 3 unknowns....
대략 2년 전 | 답변 수: 1 | 0
1
답변질문
Referring to an element within a cell array element
x{1}=[1;2;3]; for i=1:4 x{i+1}=x{i}+5; end The above small script generates a 1x5 cell array. Every element of x is a 3x1 ar...
대략 2년 전 | 답변 수: 1 | 0
1
답변질문
Using frprintf to display arrays having a string element
The script.. taylor(1)=-0.4;taylor(2)=-0.3786666667; epsilon=0.5*10^(-6); i=1; while abs ((taylor(i+1)-taylor(i))/taylor(i+1))...
대략 2년 전 | 답변 수: 0 | 0
0
답변질문
Plotting a piecewise function
I have a function m-file, goes like this: function y=periodic(x); if x<=1 y=0; end if x > 1 & x < 2 y=x-1; en...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
Creating a piecewise function
I am trying to make that triangular wave for one period with the code (I don't want to plot it, just to generate x and y values ...
3년 초과 전 | 답변 수: 2 | 0
2
답변질문
Hilbert Matrix in least squares polynomial regression
When approximating the polynomial x^2+3x+2 with a least squares polynomial of degree two in [0 1], the coefficient matrix of the...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
A complex number in the course of Müller's method
Consider the script below. I am trying to find the roots of by using Müller's method with initial estimations N=input('Enter t...
거의 4년 전 | 답변 수: 1 | 0