
MATLAB
Spoken Languages:
English
Statistiques
22 Questions
0 Réponses
RANG
22 812
of 297 398
RÉPUTATION
2
CONTRIBUTIONS
22 Questions
0 Réponses
ACCEPTATION DE VOS RÉPONSES
81.82%
VOTES REÇUS
2
RANG
of 20 433
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 158 782
CONTRIBUTIONS
0 Problèmes
0 Solutions
SCORE
0
NOMBRE DE BADGES
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
Alligning the output using fprintf
Hello. I would like to allign the output of I, B, H and mu on the right side but i have no idea how to do it. If anyone can help...
24 jours il y a | 1 réponse | 0
1
réponseQuestion
Avoiding -0.0000 as an output
Hello. I have the following script for differentiation and for some functions (e.g. f(x) = x) I get f'''(1) and f''''(1) equal t...
environ un mois il y a | 1 réponse | 0
1
réponseQuestion
Monte Carlo integration (hit or miss) to find the area of a circle of radius R
Hi everyone. Trying to solve an old exam topic regarding Monte Carlo integration, I wrote the following code for which I based i...
environ un mois il y a | 1 réponse | 0
1
réponseQuestion
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...
environ 2 mois il y a | 1 réponse | 0
1
réponseQuestion
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....
2 mois il y a | 1 réponse | 0
1
réponseQuestion
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...
2 mois il y a | 2 réponses | 0
2
réponsesQuestion
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...
2 mois il y a | 1 réponse | 0
1
réponseQuestion
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...
2 mois il y a | 1 réponse | 0
1
réponseQuestion
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 ...
2 mois il y a | 1 réponse | 0
1
réponseQuestion
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 ...
2 mois il y a | 3 réponses | 1
3
réponsesQuestion
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...
2 mois il y a | 1 réponse | 0
1
réponseQuestion
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 ...
2 mois il y a | 1 réponse | 0
1
réponseQuestion
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 ...
2 mois il y a | 2 réponses | 0
2
réponsesQuestion
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...
3 mois il y a | 1 réponse | 0
1
réponseQuestion
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...
3 mois il y a | 1 réponse | 0
1
réponseQuestion
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...
3 mois il y a | 1 réponse | 0
1
réponseQuestion
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...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
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...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
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? ...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
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...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
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 ==...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
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...
plus de 3 ans il y a | 1 réponse | 1