Community Profile # Yongjian Feng

### MathWorks

Last seen: Today 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
• • • • • • • • バッジを表示

#### Content Feed

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

2日 前 | ダウンロード 1 件 |

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

5日 前 | 0

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 ...

5日 前 | 0

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?

6日 前 | 0

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 ...

7日 前 | 0

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

11日 前 | ダウンロード 10 件 | How to add the path to a Conda (Python) Environment?

15日 前 | 0

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 ...

15日 前 | 0

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...

15日 前 | 0

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

21日 前 | 0

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...

21日 前 | 0

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...

21日 前 | 1

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

23日 前 | 0

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...

27日 前 | 0

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?

27日 前 | 0

| 採用済み

Hooking Matlab Online to a local Python installation?

27日 前 | 0

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...

27日 前 | 0

| 採用済み

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

27日 前 | 0

This is the same as calling matlab from python, right? Can you call it from python first?

29日 前 | 0

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

29日 前 | 0

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...

29日 前 | 0

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...

29日 前 | 0

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*...

29日 前 | 0

| 採用済み

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...

| 採用済み

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

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?

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?

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...

| 採用済み

Convert Subsystem into Referenced Subsystem programmatically?