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
How to plot output y(t) of LTI system, where impulse response h(t) and input x(t) are given?
Do you mean: create a list of t compute y for the list of t above plot(t, y)

1 día ago | 0

Answered
Can't use webread on nodejs local server in Matlab mobile
When you said "i used that function in Matlab mobile or Matlab on web browser", where do you run your server? You local laptop a...

1 día ago | 0

Answered
Transfer and write three lines into python: help
The numpy.sum doesn't take 'all' The for loop needs to be adjusted to 0-base import numpy as np x=np.array([5,31,41,51,61]) ...

2 días ago | 0

Answered
How can I use following code to select .txt files instead of .m file
Follow this link, you can set the filter: ``` [file,path] = uigetfile({'*.m';'*.slx';'*.mat';'*.*'},... ...

7 días ago | 0

| accepted

Answered
How to find time and velocity in second order de.
For a numerical approximation, maybe you can try this. First some background information of Physics here. The first derivative...

9 días ago | 0

Submitted


Animated-Adaptive-Linear-Neuron
Animate how Adaline classifies data by lowing cost using gradient descent. Compare three kinds of gradient descents.

9 días ago | 10 downloads |

Thumbnail

Answered
Calling python script from another python script in MATLAB
Try to add the folder of your mymul_text.py to the PYTHONPATH env. Ref: https://www.mathworks.com/help/matlab/ref/setenv.html...

22 días ago | 0

Submitted


ReqIfUtil
Utility to manipulate ReqIF documents. Change attribute values and add spec-relations

alrededor de 1 mes ago | 1 download |

Answered
Using app designer that makes a file and then clicking a button in app designer to save it to a location.
Check this: https://www.mathworks.com/help/matlab/ref/uiputfile.html

alrededor de 1 mes ago | 0

Answered
Generating a design matrix with for loops
Something like this? a = (1: 3); b = (4: 6); c = (7: 9); idx = 1; for i = a for j = b for k = c ...

alrededor de 1 mes ago | 0

Answered
How to print output to console when using a C Caller Block inside a Simulink model?
If you want to debug, is it easier to attach a debugger directly?

alrededor de 1 mes ago | 0

Answered
Calculating the projection of a point onto a plane
How about this approach: Orthogonal projection can be thought as the (smallest) distance from this point to the plane. Assume ...

alrededor de 1 mes ago | 0

Submitted


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

alrededor de 1 mes ago | 12 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-...

alrededor de 1 mes 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 ...

alrededor de 1 mes 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...

alrededor de 1 mes ago | 0

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

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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

alrededor de 2 meses 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...

alrededor de 2 meses 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?

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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?

alrededor de 2 meses 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

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses ago | 0

Load more