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
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 2
  • 3 Month Streak
  • First Submission
  • Knowledgeable Level 3
  • Revival Level 3
  • First Answer
  • First Review

View badges

Content Feed

View by

Submitted


Animated-Gradient-Descent
Animate gradient descent in 3D plot or 2D contour plot. Visualization. Demonstrate impacts of alpha, starting point, saddle po...

3 dagar ago | 8 downloads |

Thumbnail

Answered
How to add the path to a Conda (Python) Environment?
This is most likely the same as: https://www.mathworks.com/matlabcentral/answers/1450479-how-to-add-the-path-to-a-local-python-...

6 dagar ago | 0

Answered
How to add the path to a local python file to be executed by a Matlab script?
Python uses an env var called PYTHONPATH to point to packages/scripts. So inside matlab, you just need to add the path you want ...

6 dagar ago | 0

Answered
Newton's Method to Solve Equation
You need to substitute symbols with values, right? L = 1.0; h = 2.0; T = 3.0; g = 9.8; % substitute ret = subs(Df); % c...

6 dagar ago | 0

Answered
Automatically open new files as they appear in a folder
Implement a background thread that scans the folder?

13 dagar ago | 0

Answered
How can I fix this error and what does mean by should return 1 or two arguments help pls
userFG shall return one or two arguments. You can see that the code tries to call userFG and retrieves two returns. If this call...

13 dagar ago | 0

Answered
How to transfer a series of Word files to pdf files?
matlab doesn't have word2pdf function. Implement your own word2pdf function like below following this link, then you can just f...

13 dagar ago | 1

Answered
Why is my function not working?
You meant: function U = velocity(n,S,H,B) U = sqrt(S)*((B*H/(B+2*H))^(2/3))/n; end

14 dagar ago | 0

Answered
Failed to call python modules due to lack of 'core' in numba
I would recommand the following steps to narrow down the issue: From the error message, it seems like matlab can find numba but...

18 dagar ago | 0

Answered
JAGS 3.4 not recognised as command in MATLAB Win10
It seems like an issue of the PATH env var? Try to set the PATH env var to point to those folders?

18 dagar ago | 0

| accepted

Answered
Hooking Matlab Online to a local Python installation?
Can you upload your python scripts to the online matlab server?

18 dagar ago | 0

Answered
how to repeat a loop until a condition is met than draw histogramm
Just use a while loop? Try: done = false; while ~done u1=2*rand()-1; u2=2*rand()-1; d=(u1.^2)+(u2.^2); d...

19 dagar ago | 0

| accepted

Answered
Call MATLAB from Google Colab
Seems like you need to bridge it. Your local PC and Google Colab shall be able to communicate using python, I imagine. Using H...

19 dagar ago | 0

Answered
Call MATLAB from Google Colab
This is the same as calling matlab from python, right? Can you call it from python first?

20 dagar ago | 0

Answered
Bessel function values using starting values
matlab has built-in function. Compare against it. https://www.mathworks.com/help/matlab/ref/besselj.html

20 dagar ago | 0

Answered
API usage with matlab
Use webread with options. The first hurdle is the authentication. Try this one: auth If you are comfortable with curl, the no...

20 dagar ago | 0

Answered
Why do I receive Not enough input arguments?
Try this: function [SA]=equTriPrismSurfArea(sIn,hIn) for i = 1:5 s1 = sIn(i); h1 = hIn(i); S...

20 dagar ago | 0

Answered
how to use function handles
You don't need varargin function A = function1(n,a,b, c, d) A = n+a+b+c+d; end function A = function2(n,a,b, ~, ~) A = n*...

21 dagar ago | 0

| accepted

Answered
Jump to specific page in matlab multiply times // closing PDF File in Matlab
This is not a matlab issue. If you run those two commands on a terminal, you will see the same behavior. Basically the first c...

24 dagar ago | 0

| accepted

Answered
How do I reformat a set of differently formatted dates in to one consistent format?
Check this: https://www.mathworks.com/help/matlab/ref/datestr.html

26 dagar ago | 0

Answered
Can I use fuzzy logic function in online?
It belongs to a toolbox: https://www.mathworks.com/products/fuzzy-logic.html Maybe your license doesn't include this toolbox?

27 dagar ago | 0

Answered
Is there a way to put the same uitable in two seperate places? (Matlab App Designer)
Is it better to put your table in a shared area of tabs?

27 dagar ago | 0

Answered
Running a Python Script with multiple inputs and outputs through Matlab
One interesting trick is to use json. From python, serialize all the outputs into one single json string. In matlab, convert the...

29 dagar ago | 1

| accepted

Answered
Convert Subsystem into Referenced Subsystem programmatically?
Check this one please. https://www.mathworks.com/help/simulink/slref/simulink.subsystem.converttomodelreference.html

ungefär en månad ago | 0

Answered
rectangle invisible in matlab
Try this: H = findobj('Type', 'images.roi.rectangle');

ungefär en månad ago | 0

Answered
Read parquet file error
matlab can call python script. Use python to read and then pass the data to matlab. Or use python to convert the data into CSV o...

ungefär en månad ago | 0

| accepted

Answered
how to simplify the inequality?
Check this: https://www.mathworks.com/matlabcentral/answers/561893-how-to-simplify-inequalities

ungefär en månad ago | 0

Answered
isolate masks from an image that was created in a non-MATLAB program
Interesting. Can your python program outputs the masks only? That will be much easier for matlab to process the masks. Then yo...

ungefär en månad ago | 0

| accepted

Answered
Python Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128)
As you noticed, this is a python error. Try first using python directly to read, without using matlab.

ungefär en månad ago | 0

Answered
String array from Matlab to Python
Which version of matlab are you using? This is the doc of R2021a: doc

ungefär en månad ago | 0

| accepted

Load more