MATLAB ONLINE doesn't work!

6 ビュー (過去 30 日間)
Turiceanu
Turiceanu 2025 年 5 月 27 日
コメント済み: Walter Roberson 2025 年 7 月 19 日
I'm using MatLab online and it hasn't worked for a few days. When will it be fixed?
  4 件のコメント
Turiceanu
Turiceanu 2025 年 5 月 27 日
編集済み: Turiceanu 2025 年 5 月 27 日
I am from Romania and the online version does not work. And it's a general problem, I asked my colleagues and they don't work either. Now that I looked on the status I saw what this is about and I guess I'll have to wait for the fix. Thank you Torsten!
Star Strider
Star Strider 2025 年 5 月 27 日
Many of the MathWorks sites started working about 13:00 UCT earlier today, so about 7 hours ago.
Meanwhile, the online 'Run in 2024b' utility works here --
t = linspace(0,1).';
s = sin(t*[1 3 5]*2*pi);
figure
plot(t, s)
hold on
plot(t, sum(s,2), LineWidth=2)
hold off
grid
xlabel('$t$', Interpreter='LaTeX', FontSiZe=16)
ylabel('$s(t)$', Interpreter='LaTeX', FontSize=16)
.

サインインしてコメントする。

回答 (1 件)

Lakshay Kaushik
Lakshay Kaushik 2025 年 7 月 19 日
You're referring to the MATLAB plot created with the following code:
t = linspace(0,1).';
s = sin(t*[1 3 5]*2*pi);
figure
plot(t, s)
hold on
plot(t, sum(s,2), LineWidth=2)
hold off
grid
xlabel('$t$', Interpreter='LaTeX', FontSiZe=16)
ylabel('$s(t)$', Interpreter='LaTeX', FontSize=16)
Explanation of What This Code Does:
  1. t = linspace(0,1).';Creates a column vector of 100 linearly spaced values from 0 to 1 (default is 100 points unless specified otherwise).
  2. s = sin(t*[1 3 5]*2*pi);This multiplies t by [1 3 5]*2*pi to create three sinusoids of frequencies 1, 3, and 5 Hz, and stores the result in matrix s.So each column of s is:
  • sin(2πt)
  • sin(6πt)
  • sin(10πt)
  1. plot(t, s)Plots all three sinusoids on the same axes.
  2. hold on and plot(t, sum(s,2), LineWidth=2)
  • sum(s,2) sums the values across the columns (i.e., adds the 3 sinusoids pointwise).
  • This summed waveform is plotted with a thicker line.
  1. xlabel and ylabelLabels the axes using LaTeX formatting ($t$ and $s(t)$) and sets the font size.
  2. gridEnables grid lines on the plot.
Result in the Image:
  • Three thin lines: The individual sine waves of different frequencies (blue, orange, and red).
  • Thick purple line: The pointwise sum of the three sine waves.
  • Axes Labels: $t$ for time on the x-axis and $s(t)$ on the y-axis in LaTeX style.
  • Grid: Visible for clarity.
  • Correct LaTeX rendering: Used for mathematical formatting.
  1 件のコメント
Walter Roberson
Walter Roberson 2025 年 7 月 19 日
This code is from @Star Strider not from the original poster. It was sample code to illustrate that the online 'Run in 2024b' utility was properly functioning. No-one asked for an explanation of the code, and an explanation of the code does not help at all towards the original question of why MATLAB Online was not working.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by