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?
답변 (5개)
Fangjun Jiang
2011년 6월 3일
0 개 추천
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
2011년 6월 3일
0 개 추천
댓글 수: 8
Fangjun Jiang
2011년 6월 3일
What version of Matlab/Simulink? type "ver" in Matlab command window to find out.
Nuno
2011년 6월 3일
Fangjun Jiang
2011년 6월 3일
That's weird. Try to contact Matlab tech support. Is your computer a Mac or PC? It shouldn't matter though, right?
Walter Roberson
2011년 6월 3일
Gotta be PC; Mac would use apple-Q for Quit, not control-W .
Fangjun Jiang
2011년 6월 3일
Not sure if this is related. Try to close other figure window if you have any.
http://www.mathworks.com/support/bugreports/717633
Nuno
2011년 6월 3일
Fangjun Jiang
2011년 6월 3일
Re-start Matlab. If no luck, definitely contact Matlab tech support.
Nuno
2011년 6월 3일
Guy Rouleau
2011년 6월 5일
0 개 추천
Import from file is a feature introduced in R2010b. If you have an older release, you need to upgrade
댓글 수: 8
Nuno
2011년 6월 5일
Arnaud Miege
2011년 6월 6일
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
2011년 6월 6일
Fangjun Jiang
2011년 6월 6일
My mistake. Guy is right. The "Import form file" item under menu "File" in Signal Builder GUI is only available since 2010b.
Fangjun Jiang
2011년 6월 6일
run the uiimport command in Matlab. type "help xlsread" to get the syntax of using xlsread()
Arnaud Miege
2011년 6월 6일
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
2011년 6월 6일
Arnaud Miege
2011년 6월 6일
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.
Fangjun Jiang
2011년 6월 6일
0 개 추천
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...'
카테고리
도움말 센터 및 File Exchange에서 Signal Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!