Unlock AI power-ups โ upgrade and save 20%!
Use code STUBE20OFF during your first month after signup. Upgrade now โ
By For the Love of Physics
Published Loading...
N/A views
N/A likes
Get instant insights and key takeaways from this YouTube video by For the Love of Physics.
Visualization Skills in Scientific Computing
๐ The ability to plot graphs or 3D surfaces from equations provides a powerful level of clarity and understanding in subjects like Physics, Mathematics, and Engineering.
๐ป Scilab, a free numerical computational software, can be used to plot 2D graphs, 3D graphs, polar plots, and animations.
๐ ๏ธ Previous basic Scilab operations covered include mathematical operations, array/matrix handling, conditional statements (if/else), loops (for/while), and functions.
2D Plotting in Scilab
๐ Basic 2D plotting is achieved using the command `plot(x, y)`, where `x` and `y` are arrays of equal size defining the coordinates.
โ Element-wise operations on arrays (e.g., ) must use the dot operator (`.`) to avoid matrix operations.
๐จ Plot properties can be customized by appending a string (e.g., `'k'` for black, `'r--'` for red dashed line, `'o'` for circle markers) to specify color, line style, and marker symbol.
Array Generation and Plot Control
๐ข Arrays for continuous data ranges can be generated using two methods: specifying a step size or using the `linspace` command to specify the number of elements between a start and end point.
๐งน To start fresh, use `clear` (variables), `clc` (console), and `cls` (graphics window).
๐ท๏ธ Multiple plots on one graph benefit from using different colors/symbols and defining them using the `legend(['string1', 'string2'], position)` command.
3D Surface Plotting
๐ง 3D plotting requires X and Y arrays to define the plane, and a Z matrix (must be a square matrix, e.g., if X and Y have $N$ elements) containing the altitude data for each (X, Y) coordinate pair.
๐ The `surf(CapitalX, CapitalY, CapitalZ)` command, used after creating coordinate matrices with `meshgrid`, is preferred for defining surfaces based on functions $Z = f(X, Y)$.
๐จ Surface properties like face color (`facecolor`) and edge color (`edgecolor`) can be customized for better visualization of complex functions like the Mexican hat function.
Advanced Plotting Features
๐ The `subplot(rows, cols, position)` command divides the graphics window into a grid, allowing multiple independent plots to be displayed side-by-side or in a matrix layout.
๐ Titles and axis labels for individual subplots can be set by placing the `xtitle('title', 'xaxis', 'yaxis')` command directly after the respective plot command before the next `subplot`.
๐ Animation plots can be created using the `comet(x, y)` command, which shows a live trace of the function being drawn across the data points.
Key Points & Insights
โก๏ธ Visualizing mathematical results via plotting in software like Scilab significantly enhances comprehension for STEM students.
โก๏ธ When performing operations on arrays in Scilab (e.g., squaring), remember to use the element-wise operator (`.`) before the symbol (e.g., ).
โก๏ธ Use the `legend` command when plotting multiple functions on the same graph to clearly identify what each line or symbol represents.
โก๏ธ For 3D surfaces, `meshgrid` is essential for generating the required coordinate matrices needed by the `surf` command.
๐ธ Video summarized with SummaryTube.com on Jan 17, 2026, 02:58 UTC
Find relevant products on Amazon related to this video
As an Amazon Associate, we earn from qualifying purchases
Full video URL: youtube.com/watch?v=HopHJ_1QXUg
Duration: 29:53
Get instant insights and key takeaways from this YouTube video by For the Love of Physics.
Visualization Skills in Scientific Computing
๐ The ability to plot graphs or 3D surfaces from equations provides a powerful level of clarity and understanding in subjects like Physics, Mathematics, and Engineering.
๐ป Scilab, a free numerical computational software, can be used to plot 2D graphs, 3D graphs, polar plots, and animations.
๐ ๏ธ Previous basic Scilab operations covered include mathematical operations, array/matrix handling, conditional statements (if/else), loops (for/while), and functions.
2D Plotting in Scilab
๐ Basic 2D plotting is achieved using the command `plot(x, y)`, where `x` and `y` are arrays of equal size defining the coordinates.
โ Element-wise operations on arrays (e.g., ) must use the dot operator (`.`) to avoid matrix operations.
๐จ Plot properties can be customized by appending a string (e.g., `'k'` for black, `'r--'` for red dashed line, `'o'` for circle markers) to specify color, line style, and marker symbol.
Array Generation and Plot Control
๐ข Arrays for continuous data ranges can be generated using two methods: specifying a step size or using the `linspace` command to specify the number of elements between a start and end point.
๐งน To start fresh, use `clear` (variables), `clc` (console), and `cls` (graphics window).
๐ท๏ธ Multiple plots on one graph benefit from using different colors/symbols and defining them using the `legend(['string1', 'string2'], position)` command.
3D Surface Plotting
๐ง 3D plotting requires X and Y arrays to define the plane, and a Z matrix (must be a square matrix, e.g., if X and Y have $N$ elements) containing the altitude data for each (X, Y) coordinate pair.
๐ The `surf(CapitalX, CapitalY, CapitalZ)` command, used after creating coordinate matrices with `meshgrid`, is preferred for defining surfaces based on functions $Z = f(X, Y)$.
๐จ Surface properties like face color (`facecolor`) and edge color (`edgecolor`) can be customized for better visualization of complex functions like the Mexican hat function.
Advanced Plotting Features
๐ The `subplot(rows, cols, position)` command divides the graphics window into a grid, allowing multiple independent plots to be displayed side-by-side or in a matrix layout.
๐ Titles and axis labels for individual subplots can be set by placing the `xtitle('title', 'xaxis', 'yaxis')` command directly after the respective plot command before the next `subplot`.
๐ Animation plots can be created using the `comet(x, y)` command, which shows a live trace of the function being drawn across the data points.
Key Points & Insights
โก๏ธ Visualizing mathematical results via plotting in software like Scilab significantly enhances comprehension for STEM students.
โก๏ธ When performing operations on arrays in Scilab (e.g., squaring), remember to use the element-wise operator (`.`) before the symbol (e.g., ).
โก๏ธ Use the `legend` command when plotting multiple functions on the same graph to clearly identify what each line or symbol represents.
โก๏ธ For 3D surfaces, `meshgrid` is essential for generating the required coordinate matrices needed by the `surf` command.
๐ธ Video summarized with SummaryTube.com on Jan 17, 2026, 02:58 UTC
Find relevant products on Amazon related to this video
As an Amazon Associate, we earn from qualifying purchases

Summarize youtube video with AI directly from any YouTube video page. Save Time.
Install our free Chrome extension. Get expert level summaries with one click.