How to Begin a Numerical Analysis Project in Matlab?

Click For Summary
SUMMARY

The discussion focuses on initiating a numerical analysis project using MATLAB, specifically for a class assignment that requires C++ programming. The user has limited experience with MATLAB, having utilized it only a few times with pre-existing programs. They provided a code snippet that calculates a numerical approximation of a mathematical series, and they seek guidance on how to effectively start programming in MATLAB to complete their project.

PREREQUISITES
  • Basic understanding of numerical analysis concepts
  • Familiarity with MATLAB programming environment
  • Knowledge of C++ programming fundamentals
  • Understanding of mathematical series and convergence
NEXT STEPS
  • Explore MATLAB's built-in functions for numerical analysis
  • Learn about MATLAB loops and control structures
  • Study the implementation of numerical methods in MATLAB
  • Review C++ to MATLAB code translation techniques
USEFUL FOR

Students in numerical analysis courses, MATLAB users seeking to enhance their programming skills, and anyone transitioning from C++ to MATLAB for numerical computations.

aleee
Messages
17
Reaction score
0
This is the project.
2l2xcg.jpg

I have until next week. The requirement for the class is c++. (elementary numerical analysis btw). I have an idea of what is going to happen for the results but i have no idea on how to program it. I've have probably used Matlab 3 or 4 times using a premade program. Can anyone point me in the right direction on how to start.
Thanks in advance.
 
Physics news on Phys.org
Here is the code:

n=10; <this is N, set it to different values, i.e. 10, 100,1000,10000,20000

sum=0;
for i=1:n
sum=sum+1/i^4;
endfor

E=sum-pi^4/90;
 
Thanks for the code. I got a few questions to it, but i want to first complete it for i can learn a little programming of it.
 

Similar threads

  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K