Community Profile

photo

Ali Kiral


Last seen: 10 months ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 3
  • Thankful Level 2

View badges

Feeds

View by

Question


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 ...

10 months ago | 3 answers | 0

3

answers

Question


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...

1 year ago | 1 answer | 0

1

answer

Question


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(...

1 year ago | 1 answer | 0

1

answer

Question


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(...

1 year ago | 1 answer | 0

1

answer

Question


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....

1 year ago | 1 answer | 0

1

answer

Question


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...

1 year ago | 1 answer | 0

1

answer

Question


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))...

1 year ago | 0 answers | 0

0

answers

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 2 answers | 0

2

answers

Question


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 years ago | 1 answer | 0

1

answer

Question


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...

3 years ago | 1 answer | 0

1

answer