Community Profile

photo

Albert Yam


Ryerson University

2011년부터 활동

Statistics

All
  • Knowledgeable Level 3
  • Revival Level 1
  • 3 Month Streak
  • Thankful Level 1
  • Knowledgeable Level 2
  • First Answer
  • Speed Demon
  • Commenter
  • Solver

배지 보기

Content Feed

보기 기준

답변 있음
Rapid accelerator - disable tunable parameter - issue with sizes of parameters
I think I have a solution, as I was looking and doing some research. Go to Model Explorer. Then "Base workspace", drag and dro...

약 5년 전 | 0

질문


Is it possible to override the mex32 check during code generation?
Matlab 2007a, Simulink 6.6.1 I have run into a situation where we have an s-function(mex32) generated from some source code. ...

9년 이상 전 | 답변 수: 0 | 0

0

답변

답변 있음
How to edit/modify a Bus Creator Simulink block via Matlab
For Matlab2007a, Simulink 6.6.1 >> add_block('simulink/Commonly Used Blocks/Bus Creator', 'test/BC1') >> set_param('test...

10년 이하 전 | 0

질문


Detect Inf or Nan in Embedded Matlab Function block
Is there a way to detect an Inf or Nan being calculated inside an Embedded Matlab block. Simulink does not produce an error, but...

10년 이하 전 | 답변 수: 1 | 0

1

답변

답변 있음
MATLAB command line control of Simulink signal builder
Do you have to use a Signal builder? If you use a lookup table that references a variable 'mysignal' in the workspace, then rede...

10년 이하 전 | 0

답변 있음
Share your favorite snippet or utility
I have a few shortcut buttons. I have the _clear all; clc_ separate from the _close all_ though (and an _fclose(all)_). I have o...

약 10년 전 | 1

답변 있음
MATLAB Answers Wish-list #2 (and bug reports)
_[From Lucas' answer]_ About accepting a 'comment' that is in an answer box. It has more to do with the interface, in my opin...

약 10년 전 | 1

답변 있음
Conditional Simulink Block Deletion?
Try mux_list = find_system('test2', 'LookUnderMasks', 'all', 'BlockType', 'Mux'); number_of_mux = size(mux_list); n...

10년 이상 전 | 0

| 수락됨

답변 있음
Reorder inports of masked subsystem dynamically
Lucas' suggestion should be what you require, but from your description, you might be doing this more than once. I would sugg...

10년 이상 전 | 1

답변 있음
Auto-connect block to existing line
How are you "getting the old block out out the way"? I never figured out how to leave lines in place. Last time I did somethi...

10년 이상 전 | 1

| 수락됨

문제를 풀었습니다


Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

10년 이상 전

문제를 풀었습니다


Removing rows from a matrix is easy - but what about inserting rows?
Assume A is a 5-by-5 matrix. A([2,4],:) = [] is a quick way to remove rows 2 and 4. Can you find a quick way to insert rows into...

10년 이상 전

답변 있음
How do I preallocate a struct array from the importdata function (In a loop)
<http://blogs.mathworks.com/loren/2008/02/01/structure-initialization/>

10년 이상 전 | 0

답변 있음
Matlab: command mex -setup can't find my C compiler
gcc 4.16 unsupported? <http://www.mathworks.com/support/compilers/R2009b/macintosh.html> <http://www.mathworks.com/support...

10년 이상 전 | 0

답변 있음
Weird issue with Simulink model
find_system(gcs,'FindAll', 'on', 'Name', 'VariableName') %needed a sys I've never used the edit > find, but when I used fin...

10년 이상 전 | 1

| 수락됨

답변 있음
How can I suppress that xlswrite automatically converts a double into a date?
Can you give an example of what you are experiencing in the OP? I have had a date appear, for me, but for a different purpose (n...

10년 이상 전 | 0

답변 있음
Aligning the Inputs and Outputs through m script
Imagine a chart over layed on the subsystem. Draw where your margin lines are. xspacing = [inportL inportR outportL out...

10년 이상 전 | 0

답변 있음
How to send continuous data from simulink block
Why do you need the 'pause'? If you want an input to 'change over time', use a look-up table, or signal generator. hm..deja ...

10년 이상 전 | 0

답변 있음
How to 'effectively' stop outputing signals from the subsystem when it is not triggered on or not enabled?
Off the top of my head, At the output of your subsystem (outside), put a switch block, with a known 'invalid' constant (NaN? or...

10년 이상 전 | 0

답변 있음
MATLAB Answers Wish-list #2 (and bug reports)
Is there any protocol about bumping? A guilt free way to bump an unanswered, uncommented question would be nice. Perhaps have ...

10년 이상 전 | 0

답변 있음
How to tell Matlab to ignore NaNs in calculations/loops
How about just going low level. At the start of the loop (or where applicable), if any(isnan(VARIABLE)) continue ...

10년 이상 전 | 0

답변 있음
How to Copy a block from libraray into simulink model?
Add _open_system_ at the top, and _close_system_ at the bottom, to your mask.

10년 이상 전 | 1

답변 있음
How to get the Signal Names in the Bus Creator
Do you mean the names of the signals going in/out of the Bus Creator? lh = get_param(gcb,'LineHandles'); sigs_in = get_p...

10년 이상 전 | 1

답변 있음
erasing particular rows of a vector
Look for the index of the elements that are zero. That is to say *'find'* them. Once you have them, you know that those index *'...

10년 이상 전 | 0

답변 있음
unique function in matlab
I needed this as well, for R2007a [uA a b] = unique(A,'first'); C = A(sort(a));

10년 이상 전 | 1

답변 있음
Multiple Variable For Loop
In the code posted, you do not have 'j' (this might be elsewhere in your code), in your example, not even sure why you need it. ...

10년 이상 전 | 0

| 수락됨

답변 있음
Index exeeds matix dimensions in loading image folder.
If that is a direct copy of your code. Matlab is case sensitive, myFile and myfile. myFile = {myFolder.name}; ... myArr...

10년 이상 전 | 0

답변 있음
Reading Text and Parsing by Character
rand.txt = 'thequickbrownfoxjumpsoverthelazydog'; finalarray = regexp(rand.txt,'[a-z]','match') Edit: if every character...

10년 이상 전 | 1

| 수락됨

답변 있음
Save figure on a server machine with no display
Not a direct solution, but you could save the data, and reproduce the plots on another machine. You probably have the data saved...

10년 이상 전 | 0

답변 있음
Copy figure - bad quality
This might just be copy/paste but, try print -s -dmeta

10년 이상 전 | 0

더 보기