Community Profile

photo

Fangjun Jiang


Last seen: Today
2,489 2011 이후 총 참여 횟수

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

담당자

Fangjun Jiang's 배지

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

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
I want to generate a time vector
datetime([0,0,0,6,30,0]):minutes(5.12):datetime([0,0,0,15,0,0])

약 9시간 전 | 0

답변 있음
How do I programmatically set the parameters of a Simulink-PS Converter?
Click one such block in your model and run "get(gcbh)" in Command Window to learn about its properties and values. You could do...

약 10시간 전 | 1

| 수락됨

답변 있음
Drawing Rectangle/Lines with data
rectangle('Position',[0 0.15 0.012 0.012]) axis([0 0.02 0 0.2])

2일 전 | 0

| 수락됨

답변 있음
Mysterious "Operands to the || and && operators must be convertible to logical scalar values." error
this line if ~isempty(infMessage) && strmatch('optimlib:optimfcnchk',infMessage)

3일 전 | 0

답변 있음
How can I iteratively create blocks in simulink/simscape and populate them with variables?
What you need are functions like add_block(), add_line(), set_param() Follow examples in this section of the document "Programm...

7일 전 | 1

| 수락됨

답변 있음
How to check for common elements among multiple arrays ? Number of arrays are more than 100 and sizes vary for each array
Use a loop Com=intersect(out{1,1},out{1,2}); for k=3:size(out,2) Com=intersect(Com,out(1,k)); if isempty(Com) break; end ...

8일 전 | 0

| 수락됨

답변 있음
Compiled application does not write to diary log file
I think you are right. The cause is that there is no Command Window in your compiled app. I would suggest writing to a specific...

9일 전 | 0

| 수락됨

답변 있음
How to change the initial condition of a block in the model with Simulink.Parameter?
The initial condition can be regarded as a state. Use the "State Writer" block. Follow examples. https://www.mathworks.com/help...

9일 전 | 0

답변 있음
Error using str = input(prompt,'s')
YesNo = input(prompt2,'s')

10일 전 | 1

| 수락됨

답변 있음
How can I create logsout in base workspace after running sim(), without disabling fast restart?
When using sim(), the result need to be returned logsout=sim('TestLogsout2','ReturnWorkspaceOutputs', 'on')

10일 전 | 0

답변 있음
How to set 'PreserveVariableNames' to True while importing an Excel file into matlab?
help readtable 'PreserveVariableNames' Flag to preserve variable names, specified as true or fals...

11일 전 | 0

| 수락됨

질문


MATLAB Central Answers website problem?
Did anyone have any problem? When I click "My Answers", it shows both my questions and answers with questions listed first. Sa...

11일 전 | 답변 수: 7 | 0

7

답변

답변 있음
fill up a cell array with string elements
This is all you need words=split('this is a sentence.')

11일 전 | 0

답변 있음
MATLAB Help Report shows No Examples and No See Also Line
use %, not %% and provide real contents for examples and "See also".

14일 전 | 0

답변 있음
sl_customization - Update Lookup Table Data (Non-Standard Format)
As far as propagating modified data back to its source variable, it doesn't matter whether the source variable is in the base wo...

15일 전 | 0

답변 있음
how to import C code files or precompiled libraries into Simulink
Use "C Caller" block https://www.mathworks.com/help/releases/R2019b/simulink/slref/ccaller.html

15일 전 | 0

답변 있음
Error when using breakpoints in Simulink
Can you run "mex -setup" and follow instructions to select your local MinGW as the C compiler.

16일 전 | 0

답변 있음
How do I count the number of times zero is being crossed by a signal?
If you have the DSP toolbox, there is a Zero-Crossing counter block. If not, you can compare the signal with zero, which creates...

16일 전 | 0

| 수락됨

답변 있음
Updating Simulink Block Parameters using Matlab Scripts
set_param(YourModel, 'SimulationCommand', 'pause'); set_param(YourBlock, parameter, value); set_param(YourModel, 'SimulationCo...

16일 전 | 0

답변 있음
Matlab: what happends under the hood when choosing 2 seeds far away with rng
My understanding of rng(SeedNumber) is that SeedNumber is like an ID (identification number). It gives you the ablity to re-gene...

17일 전 | 0

답변 있음
Setting different properties for some line objects stored in the same handle
set(h1([3,5]),'LineWidth',2)

18일 전 | 0

| 수락됨

답변 있음
How to load data from Simulnik Thermal House example?
Specify the callback as "kuca_podaci". Don't include the ".m" extension.

18일 전 | 1

| 수락됨

답변 있음
Changing parameters with time
Use the Step block. It can specify the initial value, final value and value-changing time.

22일 전 | 0

| 수락됨

답변 있음
()-indexing must appear last in an index expression.
A=rand(3,4); size(A,2) size(A)(2) Error: Indexing with parentheses '()' must appear as the last operation of a valid indexin...

약 1달 전 | 0

답변 있음
Fail to convert string to a number
use double() to see the ASCII value a=[char(32),'3.93',char(10)]; double(a)

약 1달 전 | 0

| 수락됨

답변 있음
I cannot view my scope output window fully
If you are using Windows, find the Task Bar, find the icon for MATLAB and then the window icon for the Scope, right click, choos...

약 1달 전 | 0

답변 있음
Multi line edit box, adding text to the top rather than the bottom
try currString=[{msg};currString];

약 1달 전 | 0

| 수락됨

답변 있음
Pulsewidth detection SIMULINK with a rounding issue
Your pulse cycle is 100us. Your clock cycle is 10us. So you can count 10 times during a pulse cycle. It is like counting by 10 s...

약 1달 전 | 0

| 수락됨

답변 있음
Get Path of Saved File
use uiputfile() which can return path and file name. then save()

약 1달 전 | 0

| 수락됨

Load more