Community Profile # Fangjun Jiang

Last seen: 1일 전 2011 이후 활성

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

#### Statistics

All
• • • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
How to solve matrix raised to -1
A^(-1) inv(A)

19일 전 | 0

| 수락됨

답변 있음
How do I get time in input?????
t=now

23일 전 | 0

답변 있음
Multiply matrix column by an equation
A=[1:3;10:10:30]' A(:,1)=log(A(:,1)+1)

25일 전 | 0

| 수락됨

답변 있음
regexp function that checks if a specific letter is in the end of a cell (last character)
Don't even need regexp() metForm{i}(end)=='P'

25일 전 | 0

| 수락됨

답변 있음
Two matrices (n x 1) & (m x 1) : How to get an output matrix of size (n x m) containing pairs
I would not think you need to create such a matrix. That matrix simply duplicates lots of data. The truly useful and unique data...

25일 전 | 0

답변 있음
try to have simulink's stop time as a block
Use a Clock block, which outputs the simulation time/clock. Compare the Clock with your Constant block. Connect the output to a ...

26일 전 | 0

답변 있음
How to call Stateflow charts in a sequence
Use a Function-Call Generator block and a Function-Call Split block to sheduel the calling sequence.

26일 전 | 0

답변 있음
Simulink: How do you send a function call to another model?
In this case, double click the "In1" Inport block inside the referenced model, check the "Output function call" option under the...

26일 전 | 0

답변 있음
How format external data for an inport with enum data type defined in data dictionary in Simulink?
double click the Inport block, select the "Signal Attributes" tab, in "Data type', pick "Enum: <class name>" and specify your cl...

26일 전 | 0

답변 있음
In this case, you might have to use eval() MyCommand=[modelname,'([],[],[],''compile'')']; eval(MyCommand);

26일 전 | 1

| 수락됨

답변 있음
how to set data store variable as block parameter variable?
Use a Math function block. y=sin(2*pi*Fr*t), specify Clock multiplied by Fr as input and perform sin() function on it.

약 1달 전 | 0

답변 있음
How to convert a char array field in a struct array to a string field in a vectorized fashion.
It can be done but not sure if it is more efficient than the simple for-loop myArray=struct('code',{'a','ab','abc'}) myString=...

약 1달 전 | 0

답변 있음
Simulink model simulation has a "time" element. The true meaning of your data is that you want to input 2 scalar data. The numbe...

약 1달 전 | 0

| 수락됨

답변 있음
Matlab R2021b not generating output from Simulink
Assume "simout" is the name used in the "To Workspace" block, the saving format "Array" need to be set at the "To Workspace" blo...

약 1달 전 | 0

답변 있음
Error in port widths or dimensions. 'Output Port 1' and Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 5'
Clicking the link in the error message would lead to the block in the Simulink model. Double click the two port blocks to check ...

약 1달 전 | 0

답변 있음
What can I do so that a "matlab function" block can read the variables defined in a .m file
In the MATLAB Function block editor, click "Edit data", add "Aq11" as a "parameter".

약 1달 전 | 0

답변 있음
Checking the exisiting of the Goto block with specified GotoTag
find_system('ModelName','BlockType','Goto','GotoTag','Out4')

약 1달 전 | 0

| 수락됨

답변 있음

약 2달 전 | 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

약 2달 전 | 0

| 수락됨

답변 있음
How do we import a custom image on MATLAB which are outside of preinstalled libraries?

약 2달 전 | 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...

약 2달 전 | 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...

2달 전 | 0

답변 있음
Random shuffle of vector elements
p=randperm(3); index=[1,1+p,5]; b=A(index);

2달 전 | 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));

2달 전 | 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.

2달 전 | 0

| 수락됨

답변 있음
Invalid use of operator
There is a difference between operator "*" and ".*". But there is no such an operator as ".-" in MATLAB.

2달 전 | 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 [...

2달 전 | 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))

2달 전 | 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

3달 전 | 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...

3달 전 | 0

| 수락됨