Effacer les filtres
Effacer les filtres

How to make a 4-D Matrix from 1-D Array?

7 vues (au cours des 30 derniers jours)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA le 14 Mai 2023
Commenté : Sai le 17 Mai 2023
I have a 1-D array (1*11). I need to make it a 4D matrix (11*11*11*11). The number of data (11) for each dimension are the same. For example, the 1-D array is A=0:1:10. This A needs to be turned into 4-D matrix. How can I do that? How to write the code for that?
  3 commentaires
Rik
Rik le 15 Mai 2023
The question is much too light on details to conclude this, but I suspect the final answer will include a call to meshgrid or ndgrid. All depends on what OP actually wants to happen.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by