Community Profile

photo

Fangjun Jiang


Last seen: Today 2011 이후 활성

What is a model?
Professional Interests: Model-Based Development

Statistics

All
  • 36 Month Streak
  • Revival Level 3
  • First Review
  • Ace
  • Thankful Level 3
  • Knowledgeable Level 5
  • First Answer
  • Solver

배지보기

Content Feed

보기 기준

답변 있음
Testing a cell array if it is a string
a={'abc', 123, 'xyz',0}; b=cellfun(@isstr,a)

약 15시간 전 | 0

답변 있음
How to select consecutive rows at regular intervals?
index1=[repmat(false,20,1);repmat(true,30,1)]; index2=repmat(index1,20,1); A=rand(1000,3); B=A(index2,:)

7일 전 | 0

답변 있음
Simulink fixed-step size protected variable name
If you set the fixed step size to be a particular value, you can get the value using the following command get_param('ModelName...

7일 전 | 0

| 수락됨

답변 있음
repeat an array (a signal) over a specific period
new_phi=repmat(phi,1,200)

8일 전 | 0

| 수락됨

답변 있음
MATLAB certification/verification/validation
Not for MATLAB, but for certain Simulink products. https://www.mathworks.com/products/do-178.html#qualifying-tools https://www...

8일 전 | 0

답변 있음
Update subsystem's Block parameters for all the subsytems in a model.
h=find_system('ModelName','FindAll','on','BlockType','SubSystem') set(h,'TreatAsAtomicUnit','On') You might need to refine you...

14일 전 | 0

| 수락됨

답변 있음
Turn off Content Preview Enabled when creating a subsystem in simulink
When you add the Subsystem block, it is empty (no contents). I guess maybe due to that, 'ContentPreviewEnabled' can't be set as ...

15일 전 | 0

답변 있음
Changing plot colors directly in .fig files
Use findobj() to find the line, set the color to be [Red Green Blue] >> b=findobj(a,'type','line') b = Line with properties:...

17일 전 | 1

| 수락됨

답변 있음
License info missing in license function - How to see which licenses I have checked out?
"ver" returns the toolboxes "installed" on your computer. You could run Info=license('inuse'). Check each Info(1), Info(2) to s...

17일 전 | 0

답변 있음
comment out many SubSystems in my Model in Simulink using for loop.
num2str()

17일 전 | 1

| 수락됨

답변 있음
Error while saving Simulink model
run "dbstop if error" in MATLAB Command Window first and then save, see if you can get any lead where the error occured.

19일 전 | 0

답변 있음
Creating a logic vector out of 2D matrix
M(i,i) == M(i,0) should be M(i,2) == 0 When you have this type of error on a very simple script, put a break point and run th...

23일 전 | 0

답변 있음
How do I map a model simulink version obtatained with Simulink.MDLInfo('mymodel') to a MATLAB version (e.g. R2021b)
It looks like Simulink.MDLInfo() will give you 'ReleaseName'. I am running this in R2018b on an example model 'f14' and an old m...

24일 전 | 0

| 수락됨

답변 있음
Erase this character ''←''
double('←') strrep({'←Matlab←←'},char(8592),'') strrep({'←Matlab←←'},'←','')

25일 전 | 0

| 수락됨

답변 있음
Name of Bus at input or output port of a block
"Inbus" and "Inbus2" here are the tag names of the "From" block. They have nothing to do with the bus name, of curse except that...

28일 전 | 0

| 수락됨

답변 있음
Open a masked subsystem (look under mask) in command line
open_system(blk,'force') looks under the mask of a masked block or subsystem. It opens the dialog box of the block under the mas...

29일 전 | 0

| 수락됨

답변 있음
How to code a time delay specified by a value saved in a parameter structure in a Matlab block?
In the MATLAB Function block editor, click the "edit data" button, then add parameter. Define the "myParams" in base workspace a...

약 1달 전 | 0

답변 있음
Create a Simulink model using command Lines
add_line()

약 1달 전 | 1

답변 있음
Creating a Simulink model using command Lines
The property name for Capacitance is 'c' set(gcbh,'c','1e-5')

약 1달 전 | 1

답변 있음
Matlab signal propagation error
Here is the root cause. It is due to the difference between R2020b and earlier versions. You have to figure out how to deal with...

약 1달 전 | 0

답변 있음
Where is Switch (Relay) in Simulink?
https://www.mathworks.com/help/physmod/sps/ref/spdtrelay.html?s_tid=doc_ta https://www.mathworks.com/help/simulink/slref/manual...

약 1달 전 | 0

| 수락됨

답변 있음
How do you quickly format plots from the scope in Simulink?
Instead of using Scope, save the signal data using "To Workspace" or "To File" block. Write a M-script function to plot. see pl...

약 1달 전 | 0

답변 있음
MATLAB Puts One space between %'s (Comment)
I think that is the exact reason to add "%" and a space for "Ctrl+R", to avoid making "%%" by pressing "Ctrl+R" twice. Adding "...

약 1달 전 | 0

답변 있음
issue with using a variable for path name
cd(Path). avoid using 'Path' as variable name as path() is a function.

약 1달 전 | 0

| 수락됨

답변 있음
How to get current URL from web browser using matlab?
If you are willing to do copy&paste, you can do this in MATLAB txt=clipboard('paste')

약 1달 전 | 0

답변 있음
Libraries equivalent for referenced subsystems
The library option in find_system() 'FollowLinks', 'on' or 'off' Also 'LookInsideSubsystemReference', 'on' or 'off' See doc ...

약 1달 전 | 0

답변 있음
Road Roughness in simulink
It seems normal to me. The acceleration has positives and nagatives, thus the speed shows rising and falling, but because all th...

약 1달 전 | 0

| 수락됨

답변 있음
How to change port font color in Matlab Function Block in Simulink
It looks like block mask. Select the block, press Ctrl+M, check the "icon drawing commands".

약 1달 전 | 0

답변 있음
cannot extract data from figure with multiple lines
The other two "curves" are created using stairs(). use findobj(fig,'Type','Stair') to find those. fig = openfig('traj.fig'); >...

약 1달 전 | 0

| 수락됨

더로드