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 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

バッジを表示

Content Feed

表示方法

回答済み
How to add programmatically second input to Scope block in Simulink
specify 2 ports when you add the Scope block add_block('built-in/Scope','test/scope','NumInputPorts', '2');

4日 前 | 1

回答済み
How to get Leftmost block position
Get the position data of all the blocks Find the Min x value Through index, find the block

8日 前 | 0

| 採用済み

回答済み
How do we import a custom image on MATLAB which are outside of preinstalled libraries?
a = imread("c:\mydocument\cameraman.tif")

9日 前 | 1

| 採用済み

回答済み
How do I find out what type of block a Simulink block is?
What is a "sim"? If you have a Simulink model, double click the block. The block type is usually shown at the dialog window. Cli...

9日 前 | 0

回答済み
Why am I getting "Potential conflicting usages of identifier "FALSE": a parameter and Language Keywords"
You know 'false' is used by MATLAB as logical value for 0. I think 'FALSE' might be used by Stateflow or some customized definit...

11日 前 | 0

回答済み
Random shuffle of vector elements
p=randperm(3); index=[1,1+p,5]; b=A(index);

11日 前 | 0

回答済み
How do I fill a 1000*25 length vector with random, non-repetitive numbers from 1 to 1000000?
a=zeros(1000,25); a(:)=randperm(1000000, numel(a));

12日 前 | 0

| 採用済み

回答済み
How can I control multi-switches
Use Toggle Switch or other switch blocks from Simulink Dashboard to connect to your acutal Switch blocks inside your model.

12日 前 | 0

| 採用済み

回答済み
Invalid use of operator
There is a difference between operator "*" and ".*". But there is no such an operator as ".-" in MATLAB.

22日 前 | 0

回答済み
Simulink Switch Outputs wrong data format
check the size/dimension of the Constant zero block, the "TriggerOUT" Outport block and the Switch block itself. Specify it as [...

22日 前 | 1

| 採用済み

回答済み
Error using arrayfun All of the input arguments must be of the same size and shape
no need to use arrayfun() for this. cellstr(dec2bin(sbox,4))

23日 前 | 0

回答済み
How can I create a set of N diagnal matrices range from diag(1, 1, ... , 1) to diag(-1, -1, ... , -1) for testing purposes?
a=(dec2bin(15:-1:0)-48)*2-1; z=zeros(4,4,16); for k=1:16 z(:,:,k)=diag(a(k,:)); end

26日 前 | 1

回答済み
Creating a pulse for thermal noise
clc,clear Hz = 10; Amp = 10; x = -10:0.01:10; % a pulse function f = @(xi,a,b) a*rectpuls(xi,b)-174; % plot to plot(x,f...

26日 前 | 0

| 採用済み

回答済み
How to convert 32x32x2x20000 into 20000x1 cell array?
mat2cell() ?

約1ヶ月 前 | 0

回答済み
Multiple plots not working on the simulink spring mass model
This one again? https://www.mathworks.com/matlabcentral/answers/646918-my-simulink-model-seems-to-not-receiving-proper-variable...

約1ヶ月 前 | 0

回答済み
Insert degree symbol in axis title.
title('9^oE') text(0.5,0.5,'9^oE') xticklabels({'0^oE','1^oE'}) doc title search for "superscript"

約2ヶ月 前 | 0

回答済み
Data type work vector name must less than 31 characters long
Assume you are using base workspace as data source, could run this in Command Window and inspect the "data type" property value?...

約2ヶ月 前 | 0

回答済み
Creating a vector from a set of coordinates
You mean like this? There is really no need to do this. Please explain the need. x = [10.1, 5.4, 7.3]; y = [2.3, 7.4, 8.8]; i...

約2ヶ月 前 | 0

回答済み
Replace loop with more efficient procedure to make it faster
Would this give you a clue? t1=1:3; t2=(1:4)'; flag=(t1==t2)

約2ヶ月 前 | 1

| 採用済み

回答済み
Can I save all the command history of a running script?
diary()?

2ヶ月 前 | 0

回答済み
MATLAB path linked to last user account for designated computer license installed on Windows 10 device
There is no problem with the installation. No one should modify the build-in pathdef.m. Instead, everyone should use a short-c...

2ヶ月 前 | 0

| 採用済み

回答済み
How can I use or call .exe file in my normal matlab script ?
doc system

2ヶ月 前 | 0

回答済み
Unable to do Modeling simulink for MAB and JMAAB
Model Advisor, by products, Simulink, modeling standards, MAB It requires Simulink Check toolbox

2ヶ月 前 | 1

| 採用済み

回答済み
How to make the value in Data Store Memory global
The example is here. https://www.mathworks.com/help/simulink/ug/using-global-data-with-the-matlab-function-block.html Most like...

2ヶ月 前 | 1

回答済み
Modify the storage class in the data dictionary programmatically
https://www.mathworks.com/help/simulink/ug/store-data-in-dictionary-programmatically.html

2ヶ月 前 | 0

回答済み
How to programmaticaly set storage class (2020a) in Data Store Memory ?
if "DSM_Block" is a block handle, you can use get/set if "DSM_Block" is a block path, use set_param/get_param

2ヶ月 前 | 0

回答済み
Error:Brace indexing is not supported for variables of this type.
Run "dbstop if error" in MATLAB Command Window first and then run your optimization. Hopefully you will be able to see the line ...

3ヶ月 前 | 0

| 採用済み

回答済み
provide Input port data during simulation
https://www.mathworks.com/help/simulink/ug/signal-loading-techniques.html#bu110x_-1

3ヶ月 前 | 0

回答済み
How to vary Gain in Simulink dependent on input's amplitude and phase during runtime ?
Use the Product block. The Gain block is an operation of multiplication, right?

3ヶ月 前 | 0

回答済み
How to delete a node from DOM object?
use delete() and then write the xDoc to an XML file.

3ヶ月 前 | 0

もっと読み込む