Thread Subject: workspace input

Subject: workspace input

From: Steve

Date: 18 Jul, 2007 14:05:30

Message: 1 of 2

I'd like to input from the workspace into simulink a single matrix with time as the first column and several columns of data following. However, when I try and use the data by referencing the columns (i.e. a=matrix(:,2), b=matrix(:,3), etc.), I get errors. What am I doing wrong? Thanks!

Subject: workspace input

From: Steve

Date: 18 Jul, 2007 14:18:55

Message: 2 of 2

The error I'm getting is "Attempted to access variables(:,2); index out of bounds because numel(variables)=1." What happened to the rest of the data?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com