photo

Left Terry


Last seen: 11日 前 2021 年からアクティブ

Followers: 0   Following: 0

統計

  • Thankful Level 3
  • Thankful Level 2

バッジを表示

Feeds

表示方法

質問


Integral command doesn't work inside the for loop
Hello. I have this simple code trying to compare analytical solution of few functions with two numerical methods. I used for loo...

11日 前 | 1 件の回答 | 0

1

回答

質問


Storing while loop results in an array and plotting
Hello, I have this simple code simulating free fall. The while loop works fine in the first case but i need to plot the results....

12日 前 | 1 件の回答 | 0

1

回答

質問


4th order Runge - Kutta vs. 4th order Predictor - Corrector
Hello once again. As we can see, the error of the 4th order predictor - corrector (assuminig my code for this is correct) is gre...

16日 前 | 2 件の回答 | 0

2

回答

質問


Runge - kutta 4th order method for two different steps
Why is h = 0.5 worst than h = 1 in my code ? I can't find where i am wrong. clc, clear all, close all, format long f = @(x,y...

17日 前 | 1 件の回答 | 0

1

回答

質問


Improved Euler's method compared to 4th order Runge - Kutta's method
Is the improved Euler's method as good as the 4th order Runge - Kutta's method ? Or is it the step h that makes it almost not di...

17日 前 | 1 件の回答 | 0

1

回答

質問


Fixing a plot to show a horizontal line instead of a point
Hello. First of all I don't know if my code is correct for the specific task, especially for the error calculations. My problem ...

18日 前 | 1 件の回答 | 0

1

回答

質問


Superscripts and subscripts in fprintf
Is it possible to display text with subscripts using fprintf in R2016a ? I would like to change Nmax. fprintf('\nMaximum value ...

18日 前 | 3 件の回答 | 1

3

回答

質問


How to avoid the warnings on my code
Hello. I have the following code and i get a few warnings. How do i fix this problem ? (I used this warning('off','all') warnin...

18日 前 | 1 件の回答 | 0

1

回答

質問


Infinite while loop for Euler's method in order to solve ode
I am trying to solve an ode with Euler's method using while loop but i get into an infinite loop for my ymax value. If i change ...

19日 前 | 1 件の回答 | 0

1

回答

質問


Plot titles in subplots for various initial conditions
Hello. I have this code below and i need to put the four different values of y0 in each subplot title. How do i do this ? Is it ...

19日 前 | 2 件の回答 | 0

2

回答

質問


Saving both code and results to a word file or a pdf file
Hi. Is there a way to save to a word or to a pdf file the code and its results at once ? The publish option gives an error becau...

約1ヶ月 前 | 1 件の回答 | 0

1

回答

質問


Numerical integration (Trapezoid, Simpson, Gauss)
Hello again. I have to evaluate the integral of the function exp(x^2) from 0 to 2 using the following methods: composite trapezo...

約1ヶ月 前 | 1 件の回答 | 0

1

回答

質問


Numerical differentiation and integration
Hello. Programmming is my weakest point and I have a problem regarding numerical analysis. I was given a problem regarding proje...

約1ヶ月 前 | 1 件の回答 | 0

1

回答

質問


Exclusion of inappropriate inputs in a function
In the function below the user must enter only numbers. How can I show a screen message if the user enters letters or other unwa...

3年弱 前 | 1 件の回答 | 0

1

回答

質問


FEM grid generation with inclined sides
Hello. The following code works properly only for x_i = 0, y_i = 0, theta_x = 0 and theta_y = 0. For any other values of these f...

3年弱 前 | 1 件の回答 | 0

1

回答

質問


Plotting section works for one case and not for the other similar case
Any idea why the plotting section of the code is working for the whole "Type == 1" case and not for the whole "Type == 2" case? ...

約3年 前 | 1 件の回答 | 0

1

回答

質問


Character exclusion using ischar() in script.
Any idea how to exclude characters from the inputs using ischar() ? Every try I made has failed. I want to show user a message w...

約3年 前 | 1 件の回答 | 0

1

回答

質問


Pyth. theorem script. Complex numbers exclusion. For the Type==1 when real part is positive the exclusion does not work. Any ideas why? Any idea also for characters exclusion?
clc, clear all Type = input("Give 1 for Hypotenuse or 2 for Vertical : "); % Asking user for Hypotenuse or Vertical if Type ==...

約3年 前 | 1 件の回答 | 0

1

回答

質問


Why do I get ans = logical 1 or 0 in the command window for the following script?
%Pythagorean Theorem clc, clear all, disp('Pythagorean Theorem Formula c = sqrt(a^2+b^2)') a=input('Enter length a: a = '); b...

3年以上 前 | 1 件の回答 | 1

1

回答