Community Profile

photo

Fangjun Jiang


Last seen: Today
3,187 2011 年以降の合計貢献数

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

連絡する

Fangjun Jiang's バッジ

  • 36 Month Streak
  • Revival Level 3
  • First Review
  • Ace
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
When using the 'set_param' function, how do I ensure that I format the parameter value properly when the parameter value should be a 1x1 array?
how about this a=1;b=2;c=3 mat2str([a,b,c]) ans = '[1 2 3]'

約7時間 前 | 0

| 採用済み

回答済み
Read specific value from XML-file
The short answer is to use xmlread(). I've done it before. The actual code depends on the schema. You may also try xml2struct()...

約13時間 前 | 0

回答済み
Matlab zoom window behavior in recent years
That is true but I think there is a benefit. It allows you to do x-only or y-only zoom easily. Regarding zoom outside of the li...

1日 前 | 0

回答済み
Start/Stopp in one Button
For fun, one-liner uibutton('Text','Start','ButtonPushedFcn','set(gcbo,''text'',setdiff(["Start","Stop"],get(gcbo,''text'')))')...

1日 前 | 0

回答済み
Log simulink (variable step) data with with one sample time!
You can always specify the sample time of the data logging (ToWorkspace block or signal logging). Keep in mind though that this ...

2日 前 | 1

回答済み
Access Data in to APP DESIGNER from Simulink 'To Workspace' block.
Use set_param() to set 'SimulationMode' and then still run simout = sim("AppDesignSetup.slx") so it will force the log of si...

2日 前 | 0

回答済み
How to replace one subsystem with other ..
replace_block() see examples in doc

3日 前 | 0

| 採用済み

回答済み
How do I evaluate string user input with switch statement?
input('This is a prompt [y/n]','s') to input a string. Otherwise, it is for numerical.

4日 前 | 0

| 採用済み

回答済み
From workspace block error: Time values must be a real vector.
If you are using timeseries, make sure its time data is valid. For example Var=timeseries; Var.Time=[0;1]; Var.Data=[1;100] ...

6日 前 | 0

回答済み
how to zoom in
axis()

6日 前 | 0

回答済み
Disable Drag and Drop
Search "how to disable drag and drop in windows" and see the steps. I assume the same risk exists in other apps if it happens to...

8日 前 | 0

回答済み
Automate the response to command prompt in matlab
There is a more secure way to do this such as using PuTTY PLINK.But if you don't mind storing and exposing your password, you co...

8日 前 | 0

回答済み
Is there a way of getting the "LoggingName" and "Source Port" of all the Logging Selected Signals directly in Matlab?
After a simulation, your signal logging data is saved as, e.g. logsout Run logsout.getElementNames and other API to get the inf...

8日 前 | 0

回答済み
Vector to matrix using assignment - Simulink
Your output is a 2x4 matrix. Using Assignment block, you could either Provide a scalar value in U, assign multiple elements of ...

8日 前 | 0

回答済み
Option to flip up-down a Simulink block not available in 2020a
You can show block name on top or bottom but there was never a up-down flip. If you want to change the position of the port, cha...

9日 前 | 0

回答済み
Is there any function in Matlab that can serve as "VLOOKUP" of Excel?
[~,index]=ismember(final1,aux2(:,1)) newData=aux2(index,:)

9日 前 | 1

| 採用済み

回答済み
Demux signal from Transform sensor (simscape multibody)
Try "Demux" or "Bus Selector" block.

9日 前 | 0

回答済み
How can I use two PID controllers in Simulink?
Your output y seems to be 2x1, but if your current model runs, then your control variable u is 1x1. You can't have two PID contr...

10日 前 | 0

回答済み
Passing values from Matlab to Simulink
Start a new model, drag a Constant block and Display block. Connect them, specify the Constant value as T and simulate.

10日 前 | 0

回答済み
PID controller without using Simulink
"doc pid" or look at the examples in "doc connect"

10日 前 | 0

回答済み
Make Combination form 3 kind of variable and each variable have its own value
Start with this [x,y,z]=meshgrid(1:4,1:4,1:4); data=[x(:),y(:),z(:)]

10日 前 | 0

| 採用済み

回答済み
Error evaluating parameter 'Mass'
All those variables "Mass", "CenterOfMass", etc. need to be assigned values in base workspace or data dictionary. Typically, the...

11日 前 | 0

回答済み
Step Block Simulink Setup
The Step block in Simulink is all you need.

13日 前 | 0

回答済み
draw 30 cycles of sinusoid oscillating at 10^6 hz
change to this line tt=0:T/100:30*T

13日 前 | 0

回答済み
Different (Simulink) simulation results when called from App designer than a matlab script (.m)
This happened several times now and it might be related. Give a return variable when you call sim() such as Result=sim(...). Ot...

17日 前 | 0

回答済み
How to use external function(m file) in a Simulink?
Interpreted MATLAB Function

19日 前 | 0

| 採用済み

回答済み
Set certain value of signal when it goes above threshold.
Use the Relational Operator block to compare the signal against the threshhold value. The output is a true or false signal. Use ...

22日 前 | 0

回答済み
One of the Mask Parameters getting reset in Entire Model while saving Custom Library.
Things like this usually gets complicated when it is put in a library. Without the actual model, I could guess: If you are set...

23日 前 | 0

| 採用済み

回答済み
Deleting every n rows in matrix
A=1:100 A=A(1:15:end)

23日 前 | 0

Load more