Problem in Signal Builder

Hi... I like import files from Microsoft Excel... I already read this: http://www.mathworks.com/help/toolbox/simulink/gs/bsmigir.html
But in step 4, when i click in File, don't appear "Import from File". Why?

Risposte (5)

Fangjun Jiang
Fangjun Jiang il 3 Giu 2011

0 voti

Are you sure? Please not to click the menu "File" in your Simulink model. You need to double click the "Signal Builder" block and then click the menu "File" from the pop-up GUI.
Nuno
Nuno il 3 Giu 2011

0 voti

8 Commenti

Fangjun Jiang
Fangjun Jiang il 3 Giu 2011
What version of Matlab/Simulink? type "ver" in Matlab command window to find out.
Nuno
Nuno il 3 Giu 2011
MATLAB Version 7.9.0.529 (R2009b)
Fangjun Jiang
Fangjun Jiang il 3 Giu 2011
That's weird. Try to contact Matlab tech support. Is your computer a Mac or PC? It shouldn't matter though, right?
Walter Roberson
Walter Roberson il 3 Giu 2011
Gotta be PC; Mac would use apple-Q for Quit, not control-W .
Fangjun Jiang
Fangjun Jiang il 3 Giu 2011
Not sure if this is related. Try to close other figure window if you have any.
http://www.mathworks.com/support/bugreports/717633
Nuno
Nuno il 3 Giu 2011
I closed but nothing...
Is PC... I don't understand :(
It's very important...
Fangjun Jiang
Fangjun Jiang il 3 Giu 2011
Re-start Matlab. If no luck, definitely contact Matlab tech support.
Nuno
Nuno il 3 Giu 2011
Fangjun Jiang don't appear...

Accedi per commentare.

Nuno
Nuno il 4 Giu 2011

0 voti

Don´t appear "Import from File"... Any ideia to make this graph: http://img268.imageshack.us/img268/7779/graphap.png
Guy Rouleau
Guy Rouleau il 5 Giu 2011

0 voti

Import from file is a feature introduced in R2010b. If you have an older release, you need to upgrade

8 Commenti

Nuno
Nuno il 5 Giu 2011
Is there any way I can achieve this without installing another version of Matlab?
Arnaud Miege
Arnaud Miege il 6 Giu 2011
Guy's correct, see release notes for R2010b (http://www.mathworks.com/help/releases/R2011a/toolbox/simulink/rn/bsjn1am-1.html). A workaround is to import the data from Excel into MATLAB using the import wizard or xlsread, and then the Signal Builder with the data from the workspace.
Nuno
Nuno il 6 Giu 2011
How i use import wizard or xlsread?
Fangjun Jiang
Fangjun Jiang il 6 Giu 2011
My mistake. Guy is right. The "Import form file" item under menu "File" in Signal Builder GUI is only available since 2010b.
Fangjun Jiang
Fangjun Jiang il 6 Giu 2011
run the uiimport command in Matlab. type "help xlsread" to get the syntax of using xlsread()
Arnaud Miege
Arnaud Miege il 6 Giu 2011
Have a look at the MATLAB and Simulink tutorials on http://www.mathworks.com/academia/student_center/tutorials/. You should also read the "Data Import and Export" section of the MATLAB documentation (http://www.mathworks.com/help/releases/R2011a/techdoc/import_export/ug_intropage.html).
Nuno
Nuno il 6 Giu 2011
But to transfer values from Excel to simulink and contruct a graph?
Arnaud Miege
Arnaud Miege il 6 Giu 2011
You haven't read what I said: you don't transfer values from Excel to Simulink. You import the data from Excel into MATLAB and then read the data from the MATLAB workspace in the Signal Builder block. Read through the documentation and the tutorials I suggested.

Accedi per commentare.

Fangjun Jiang
Fangjun Jiang il 6 Giu 2011

0 voti

So there is no problem on Simulink Signal Builder block. You want to create a curve like you have show in the Signal Builder block. Assume you have the data points for that curve in an Excel file, you can follow the advice provided to import those data points into Matlab workspace, then you'll have the x and y values for that curve. Go to Signal Builder block GUI, click menu 'Signal'>'New'>'Custom...'

Tag

Richiesto:

il 3 Giu 2011

Community Treasure Hunt

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

Start Hunting!

Translated by