How can I change a simple matlab code to python

1 vue (au cours des 30 derniers jours)
Debelaw Kediro
Debelaw Kediro le 20 Jan 2022
Commenté : Debelaw Kediro le 20 Jan 2022
n = 1000;
std = 1;
x = std.*randn(n,1);
figure(1)
plot(x,'.')
grid on ;
histogram(x,50)
y = cos(x);
figure(2)
plot(y,'.' );
grid on ;
figure(3)
histogram(y,50)
y_mean = mean(y)
y_variance = var(y)

Réponses (1)

jessupj
jessupj le 20 Jan 2022
learn python, and probably the numpy library.. this isn't the place for help with that.
  1 commentaire
Debelaw Kediro
Debelaw Kediro le 20 Jan 2022
I would but its urgent. How about a little help

Connectez-vous pour commenter.

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by