Effacer les filtres
Effacer les filtres

Writing data from multiple scopes in Simulink to an excel file?

2 vues (au cours des 30 derniers jours)
James Murray
James Murray le 20 Avr 2014
Commenté : James Murray le 20 Avr 2014
Hi
I have used "to workspace" function and saved the data as x and y variables.
I know I can use the following to export one scope and save it in excel. But how do I change this so it does both of them at the same time?
A= [tout,x];
save file.xls A -ascii
Thanks

Réponse acceptée

Mischa Kim
Mischa Kim le 20 Avr 2014
James, simply append the second data vector to the matrix
A = [tout,x,y];
save file.xls A -ascii
where x and y are the two data arrays from the two scopes.
  4 commentaires
James Murray
James Murray le 20 Avr 2014
Please have a look at my other question I just posted.
James Murray
James Murray le 20 Avr 2014
By the way that command fixed it. Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by