MATLAB not showing any plots

Hello,
I am completely new to MATLAB. My problem is that no plots are showing up. Wenn I run code with the plot(x,y) function, then a window pops up, but its completely empty! This is not because of errors in my code, since even examples from MathWorks like the following code generate the same black screen:
x = 0:pi/100:2*pi;
y = sin(x);
gcf;
plot(x,y)
I have searched all over the internet for a solution and tried several solutions, none of which have worked. I would be greatful for help that is more specific to ma situation. I have a basic Matlab license on my university account (R2022a) and my OS is Linux, version: Ubuntu 20.04.4 LTS.
Many thanks in advance!
Best Regards,
D

2 Comments

Do you have a fresh Matlab and installed all updates for the graphics hardware? Could a user defined function like "axes" shadow a builtin function?

Sign in to comment.

Answers (1)

div23
div23 on 19 May 2022
Thanks for the answers.
I had thought that the basic package that I got access to through my university account would be enough. As it turns out, I need the Statistics Toolbox to use the downloaded version of MATLAB for my purposes, which is programming for an introductory machine learning course. This costs 35 euros, which surprised me, because I'm just a student and this is very expensive for me. However, I then realised I could still access all the features I need with the online version of MATLAB. So that's good! Problem solved:)

Categories

Products

Release

R2022a

Asked:

on 11 May 2022

Answered:

on 19 May 2022

Community Treasure Hunt

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

Start Hunting!