Skip to content

Commit 0422191

Browse files
committed
Modify testing and fix link in README
1 parent 6f8a792 commit 0422191

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
MATLABVersion: [R2024a,R2024b]
22+
MATLABVersion: [R2024b,R2025a,R2025b]
2323
runs-on: ubuntu-latest
24+
env:
25+
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
2426
steps:
2527
# Checks-out your repository
2628
- uses: actions/checkout@v4
@@ -39,6 +41,7 @@ jobs:
3941
with:
4042
release: ${{ matrix.MATLABVersion }}
4143
products: Symbolic_Math_Toolbox
44+
cache: true
4245

4346
# Run all the tests
4447
- name: Run SmokeTests
@@ -66,11 +69,11 @@ jobs:
6669
# Checks-out your repository
6770
- uses: actions/checkout@v4
6871

69-
# Sets up R2023b
72+
# Sets latest MATLAB
7073
- name: Setup MATLAB
7174
uses: matlab-actions/setup-matlab@v2
7275
with:
73-
release: R2024b
76+
release: latest
7477

7578
# Download the test results from artifact
7679
- name: Download All TestResults
@@ -85,6 +88,15 @@ jobs:
8588
uses: matlab-actions/run-command@v2
8689
with:
8790
command: openProject(pwd); PostSmokeTest;
91+
92+
# Upload the badege as artifact
93+
- name: Upload Badge
94+
if: ${{ always() }}
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: Badge-Artifact
98+
path: ./public/TestedWith.json
99+
overwrite: true
88100

89101
# Deploy reports to GitHub pages
90102
- name: Setup Pages
@@ -95,16 +107,4 @@ jobs:
95107
path: public
96108
- name: Deploy to GitHub Pages
97109
id: deployment
98-
uses: actions/deploy-pages@v4
99-
100-
# Commit the JSON for the MATLAB releases badge
101-
- name: Commit changed files
102-
continue-on-error: true
103-
run: |
104-
git config user.name "${{ github.workflow }} by ${{ github.actor }}"
105-
git config user.email "<>"
106-
git pull
107-
git add Images/TestedWith.json
108-
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
109-
git fetch
110-
git push
110+
uses: actions/deploy-pages@v4

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
[![View on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/182739?s_tid=prof_contriblnk) or [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Fourier-Analysis_jp&project=fourier-analysis.prj&file=README.mlx)
88

9+
https://img.shields.io/endpoint?url=https://mathworks-teaching-resources.github.io/Fluid-Mechanics/TestedWith.json
910
[![MATLAB Versions Tested](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FMathWorks-Teaching-Resources%2FFourier-Analysis_jp%2Frelease%2FImages%2FTestedWith.json)](https://MathWorks-Teaching-Resources.github.io/Fourier-Analysis_jp)
1011

1112
**Curriculum Module**
@@ -64,27 +65,27 @@ MATLAB®、Symbolic Math Toolbox™
6465
## [**FourierSeries.mlx**](./Scripts/FourierSeries.mlx)
6566
| | **このスクリプトで学生は...** <br> | **実験課題** <br> |
6667
| :-- | :-- | :-- |
67-
| <img src="./Images/image_3.png" width="267" alt="image_3.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数を視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab1\_FourierSeries.mlx](./Scripts/Lab1_FourierSeries.mlx) <br> |
68+
| <img src="./Images/FourierSeriesCover2.png" width="267" alt="image_3.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数を視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab1\_FourierSeries.mlx](./Scripts/Lab1_FourierSeries.mlx) <br> |
6869

6970
## [**ComplexFourierSeries.mlx**](./Scripts/ComplexFourierSeries.mlx)
7071
| | **このスクリプトで学生は...** <br> | **実験課題** <br> |
7172
| :-- | :-- | :-- |
72-
| <img src="./Images/image_4.png" width="267" alt="image_4.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数を視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab2\_ComplexFourierSeries.mlx](./Scripts/Lab2_ComplexFourierSeries.mlx) <br> |
73+
| <img src="./Images/ComplexSeriesCover2.png" width="267" alt="image_4.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数を視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab2\_ComplexFourierSeries.mlx](./Scripts/Lab2_ComplexFourierSeries.mlx) <br> |
7374

7475
## [**FourierTransform.mlx**](./Scripts/FourierTransform.mlx)
7576
| | **このスクリプトで学生は...** <br> | **実験課題** <br> |
7677
| :-- | :-- | :-- |
77-
| <img src="./Images/image_5.png" width="267" alt="image_5.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数を視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab3\_FourierTransform.mlx](./Scripts/Lab3_FourierTransform.mlx) <br> |
78+
| <img src="./Images/FourierTransformCover2.png" width="267" alt="image_5.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数を視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab3\_FourierTransform.mlx](./Scripts/Lab3_FourierTransform.mlx) <br> |
7879

7980
## [**DiscreteFourierTransform.mlx**](./Scripts/DiscreteFourierTransform.mlx)
8081
| | **このスクリプトで学生は...** <br> | **実験課題** <br> |
8182
| :-- | :-- | :-- |
82-
| <img src="./Images/image_6.png" width="267" alt="image_6.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数モードを視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab4\_DFT.mlx](./Scripts/Lab4_DFT.mlx) <br> |
83+
| <img src="./Images/DFTCover2.png" width="267" alt="image_6.png"> <br> | $\bullet$ 時間領域と周波数領域で信号を比較 <br> $\bullet$ 周波数領域で音声信号を解析 <br> $\bullet$ フーリエ級数モードを視覚化 <br> $\bullet$ フーリエ級数における位相シフトの表現方法を説明 <br> $\bullet$ 振幅と位相について議論 <br> | [Lab4\_DFT.mlx](./Scripts/Lab4_DFT.mlx) <br> |
8384

8485
# アプリ
85-
| [フーリエ級数アプリ(sinまたはcosのみで波形の重ね合わせを表現)](<<matlab:run SinCosSeries.mlapp>;>) <br> | [フーリエ級数アプリ(sin項およびcos項の係数変更による合成波形の可視化)](<<matlab:run InteractiveFourierSeries.mlapp>;>) <br> | [振幅と位相での表現を可視化するアプリ](<<matlab:run MagnitudePhase.mlapp>;>) <br> | [複素フーリエ級数を可視化するアプリ](<<matlab:run ComplexFourierSeries.mlapp>>) <br> |
86+
| [フーリエ級数アプリ(sinまたはcosのみで波形の重ね合わせを表現)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Fourier-Analysis_jp&project=fourier-analysis.prj&file=Apps/SinCosSeries.mlapp;) <br> | [フーリエ級数アプリ(sin項およびcos項の係数変更による合成波形の可視化)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Fourier-Analysis_jp&project=fourier-analysis.prj&file=Apps/InteractiveFourierSeries.mlapp;) <br> | [振幅と位相での表現を可視化するアプリ](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Fourier-Analysis_jp&project=fourier-analysis.prj&file=Apps/MagnitudePhase.mlapp;) <br> | [複素フーリエ級数を可視化するアプリ](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Fourier-Analysis_jp&project=fourier-analysis.prj&file=Apps/ComplexFourierSeries.mlapp) <br> |
8687
| :-- | :-- | :-- | :-- |
87-
| [<img src="./Images/image_7.png" width="186" alt="image_7.png">](<matlab:run SinCosSeries.mlapp>) <br> | [<img src="./Images/image_8.png" width="186" alt="image_8.png">](<matlab:run InteractiveFourierSeries.mlapp>) <br> | [<img src="./Images/image_9.png" width="186" alt="image_9.png">](<matlab:run MagnitudePhase.mlapp>) <br> | [<img src="./Images/image_10.png" width="185" alt="image_10.png">](<<matlab:run ComplexFourierSeries.mlapp>>) <br> |
88+
| <img src="./Images/image_7.png" width="186" alt="image_7.png"> <br> | <img src="./Images/image_8.png" width="186" alt="image_8.png"> <br> | <img src="./Images/image_9.png" width="186" alt="image_9.png"> <br> | <img src="./Images/image_10.png" width="185" alt="image_10.png"> <br> |
8889

8990

9091
# 教育者向けリソース

SoftwareTests/PostSmokeTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function PostSmokeTest(ShowReport)
5757
Badge.message = join("R"+Version," | ");
5858
end
5959
Badge = jsonencode(Badge);
60-
writelines(Badge,fullfile("Images","TestedWith.json"));
60+
writelines(Badge,fullfile("public","TestedWith.json"));
6161

6262
if ShowReport
6363
web(fullfile(Folder,"index.html"))

0 commit comments

Comments
 (0)