WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

Tabelle

 

Lizi

Gast


Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 01.10.2013, 17:16     Titel: Tabelle
  Antworten mit Zitat      
Hallo Leute,

Ich versuche ein Tabelle an Scilab machen, aber es klappt nicht, also jedes loop macht es ein neue Tabellen aber es sollte ein einziger Tabelle sein.

(I'm trying to do a Table, but everytime that start again the loop it make a new table, but it should be just one table, this is my code:)

Code:
line_range = 0:7

function [] = file_save(nline)
      x = nline;
      y = traindata.perf.US.BO.g997csg.ActualDataRate; // it's a code to get the upstream from the channel that I'm testing.
      z = traindata.perf.DS.BO.g997csg.ActualDataRate; // Downstream
      Tabelle = string ([x', y', z']);

      if nline = 0 then
          Tabelle = ['Channel', 'Upstream', 'Downstream'; Tabelle];
          disp (string(Tabelle));
          print (fd_wt, Tabelle);
      else
           Tabelle = [Tabelle];
            disp (string(Tabelle));
            print (fd_wt, Tabelle);
      end

endfunction

fd_wt = file ('open', 'Test01.txt', 'new');

for i = line_range
        file_save (i);
end
 

------------------------------------------------------------------------------
On the file:

Tabelle =

!Channel Upstream Downstream !
! !
!0 13260000 58028000 !
Tabelle =

!1 13728000 57836000 !

And I would like that it was like:

Tabelle =

!Channel Upstream Downstream !
! !
!0 13260000 58028000 !
!1 13728000 57836000 !


Someone know what I shoul do?


Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2024 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.