
Programming Languages:
MATLAB
Spoken Languages:
English
MATLAB
Spoken Languages:
English
統計
MATLAB Answers
22 質問
0 回答
ランク
of 157,957
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
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...
10日 前 | 1 件の回答 | 0
1
回答質問
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...
18日 前 | 1 件の回答 | 0
1
回答質問
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...
21日 前 | 1 件の回答 | 0
1
回答質問
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...
約2ヶ月 前 | 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....
約2ヶ月 前 | 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...
約2ヶ月 前 | 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...
約2ヶ月 前 | 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...
約2ヶ月 前 | 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 ...
約2ヶ月 前 | 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 ...
約2ヶ月 前 | 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...
約2ヶ月 前 | 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 ...
約2ヶ月 前 | 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 ...
約2ヶ月 前 | 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...
2ヶ月 前 | 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...
2ヶ月 前 | 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...
2ヶ月 前 | 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