Effacer les filtres
Effacer les filtres

How can I replace the rand function to real values and how can I change the shape of the drawing resulting from the code

2 vues (au cours des 30 derniers jours)
Generate Random Load Data
numMonths = 12;
numDays = 365;
numHours = 24;
loadData = rand(numHours, numDays, numMonths

Réponses (1)

the cyclist
the cyclist le 12 Déc 2023
It would be better if you gave a more complete description of what you want. Here is a guess:
% Generate Random Load Data
numMonths = 12;
numDays = 365;
numHours = 24;
loadData = [randi(numHours) randi(numDays) randi(numMonths)]
loadData = 1×3
23 160 8

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by