Community Profile

photo

Yongjian Feng

MathWorks

Last seen: Today Active since 2021

Software Engineer of Simulink Requirements team. Part time instructor of Calculus and Statistics. Experienced programmer in C/C++ and python. Mac user.

Statistics

All
  • Personal Best Downloads Level 1
  • GitHub Submissions Level 3
  • 5-Star Galaxy Level 1
  • 3 Month Streak
  • First Submission
  • Knowledgeable Level 3
  • Revival Level 3
  • First Answer
  • First Review

View badges

Content Feed

View by

Answered
Dijkstra algoritm coding on multileg itineraries
Dijkstra algorithm actually gives you the seudo-code of the implementation. Just need to translate that seudo-code into matlab. ...

alrededor de 9 horas ago | 0

| accepted

Answered
Why am I getting "too many output arguments" when I am Quantizing an input speech?
It looks like quantize only returns one output, not 3 help quantize

1 día ago | 0

Answered
How to append image from UIAxes of App designer to the report generating using mlreportgen?
Assuming you are talking about matlab report, this reference talks about how to add a figure into the report.

2 días ago | 0

Answered
how do I show the images name on top of each picture
Add a title to each subplot, after you call subplot: title('Horse')

2 días ago | 0

Answered
How to use context menu for app designer
Each listbox has its own contextmenu, right? You should be able to tell which listbox is calling, right? Attach a screenshot i...

2 días ago | 0

Answered
how can a plot a function given by the user in app design?
It seem like all you need is this.

3 días ago | 0

Answered
Error using gmres. Too many output arguments.
It is working, at least for 2021a. Which version are you using please? When matlab outputs an error, it normally tells you whic...

3 días ago | 0

Answered
I keep getting the error: Error in Assignment7_1 (line 11) hyp2 = minimize(hyp, @gp, -100, @infGaussLik, meanfunc, covfunc, likfunc, x, y); when I run a code.
The last line calling minimize, which function do you want to call? Are you calling one of the built-in functions or a custom fu...

3 días ago | 0

Answered
Each data point plots as individual points not as one set of many points
plot can take arrays as inputs. So take the plot call out of the for loop. obj = VideoReader('VidName.avi') %same name as fil...

3 días ago | 0

Answered
How to delete a part of a curve?
Can you find the point? If you know the point (say t1), then you can have T1 = linspace(t1, 1500, 100); T2 = linspace(300, t1,...

3 días ago | 0

Answered
Solving an equation of 3 unknown variables by inputing 3 sets of data
Try it yourself first, and we can then help to improve your work. Your task can be broken down into the following subtask: Read...

3 días ago | 0

Answered
strcmp function using wildcards
Try regular expression.

3 días ago | 0

Answered
How to access *.mat files using Matlab drive and load them ?
Try without MATLAB Drive? Just load('data.mat')

4 días ago | 0

| accepted

Answered
circle inside triangle tangent points
This is more like a math problem, is it? Can you compute two of the bisectors? They intercept right at the center of the circle...

5 días ago | 0

| accepted

Answered
How to control the visibility of the panels through radio buttons?
create a funciton that sets everything to OFF. Call this function first, and then just set only the one you want to ON.

5 días ago | 0

| accepted

Answered
A2L file
Start from the documentation of matlab A2L first?

5 días ago | 0

| accepted

Answered
In the Symbolic toolbox,how to get the results like in the old version
Seems like the same answer but presented in different form. The new version factorizes the result for example for int(x-x^2) ...

5 días ago | 0

Answered
Unable to find Perl executable.
Acording to this anwer, matlab uses $SHELL to execute shell command. Most likely your SHELL env var is /usr/bin/fish. Check from...

5 días ago | 0

Answered
SLP optimization yields "Error Z must be at least a 2x2 matrix"
Your X is a 100x100 matrix, Y is also a 100x100 matrix. But your G is a 1x100 vector. The error is about your G (referred as Z)....

6 días ago | 0

| accepted

Answered
getting different results with excel data
Without a sample file, it is difficult to investigate the problem for you. You might need to do this yourself: read the data fr...

6 días ago | 0

Answered
while executing this code in MATLAB iam getting an error like visualizeBoundary requiers more input arguments?
How did you call this function? It looks like this function needs: X: a nx2 matrix y: not sure how it is used in plotData. Mo...

6 días ago | 0

Answered
Create table in a for loop with text
Try this: files = dir('*.csv'); B = {}; for i = 1:length(files) csv = readtable(files(i).name, 'Range', 'A1:I8'); % Doub...

6 días ago | 1

Answered
how can i convert detected grayscale image object back into rgb form?
How about changing the red chili area of the last image to alpha = 0 (so it is completely transparent). Then overlay on top of t...

6 días ago | 0

Answered
Iterating over Columns/Rows (no index)
If the array is a row vector, then it works a = [1 2 3] for i = a disp(i) end

6 días ago | 0

Answered
how ca I install MATLAB on windows 7, 32 bit ?
Did you check this? Most likely you will need to use an old version of matlab.

7 días ago | 0

Answered
I am facing the issue "Error: State: failed due to an unexpected error (MATLAB:undefinedVarOrClass)" while using Polyspace R2019A
You are using Polyspace to analyze your code? Can you code run inside matlab successfully first? Seems like there might be unde...

7 días ago | 0

Answered
How to transfer Big Data from Python Dict to Matlab
In python, can you save your Big Data into a CSV file or json file? matlab can read CSV file and json file.

8 días ago | 0

Answered
How to Convert Matlab for-loop in Python
Your code looks like mixture of matlab and python already. math.sin is python, not matlab. Try this: import math # Not sure yo...

8 días ago | 0

Answered
error in calling python function from matlab
I am confused here. This doesn't look like valid python3 statements. import /home/pi/Desktop/plus; plus.add(150, 110) Do you ...

8 días ago | 0

Answered
Real-time communication between python and Simulink.
Interesting. It is an old question but users are still interested in this. How about this approach? Go through a server. On the...

8 días ago | 0

Load more