Community Profile

photo

Yongjian Feng

MathWorks

Last seen: 7 dagen ago 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
  • 6 Month Streak
  • Personal Best Downloads Level 1
  • GitHub Submissions Level 3
  • 5-Star Galaxy Level 1
  • First Submission
  • Knowledgeable Level 3
  • Revival Level 3
  • First Answer
  • First Review

View badges

Content Feed

View by

Answered
Bulk upload issue - HTTP Error code 502
You are using python code, but this is a matlab forum, right? In general, three suggestions: Try curl. This can tell if there ...

12 dagen ago | 1

Answered
Save a matrix .mat in a specific folder with a variable name
Try something this: a = 100; for i=1:3 file_name = ['filename' num2str(i)]; save(file_name, 'a'); end

14 dagen ago | 0

| accepted

Answered
c code and makefile to matlab
If you can compile it and run it from terminal, can you just use the system command?

14 dagen ago | 0

Answered
Can I see the text of a compiled *.m file?
The folder you mentioned in general is used for caching data locally. Most likely during compilation. This might not happen in t...

29 dagen ago | 0

Answered
Working with fortran Mex files on Mac OS
Try this answer.

ongeveer een maand ago | 0

Answered
Plot Time Sensitive Data plus a fit in the same plot
To show more than one plots in a figure, use plot(Date, Thickness, '.'); hold on % this means you want more than one plots in ...

ongeveer een maand ago | 0

Answered
Creating MATLAB tests in separate folder/module
Use addpath("your_root_path")

ongeveer een maand ago | 0

| accepted

Answered
How to write this expression in MatLab
e^x is exp(x) in matlab, and lnx is log(x).

ongeveer een maand ago | 1

Answered
How do I subplot figures and Title Figures
Try this: subplot(2, 3, 1); % there are 2x3 images, this is the first one imshow('the_first_image.png'); % show first title...

ongeveer een maand ago | 1

Answered
Not enough input arguments
What is confusion.getMatrix? The built-in confusion is a function. There is another confusionmat, but the return arguments don't...

ongeveer 2 maanden ago | 0

Answered
I want to make a GUI in which only those functions run whose radio button is on, but how to make it?
Radio buttons or checkboxes? You can have a figure with multiple plots. Say if you have 10 checkboxes, then put 10 plots in th...

ongeveer 2 maanden ago | 0

Answered
Turn a two dimensional vector into an array
Check this command?

ongeveer 2 maanden ago | 0

Answered
How can i Calculate this with matlab?
If the series is convergent, one way is to set a cutoff value (for example epsilon = 0.00000001). Then when you do the sum from ...

ongeveer 2 maanden ago | 0

Answered
How to change the name of variables inside a file.mat?
How about this? t=100;C=80; % your data save('data.mat', 't','C'); clear; load('data.mat'); %load it first texp=t; Cexp=C...

ongeveer 2 maanden ago | 0

| accepted

Answered
I don't know how to write the following problem: f(x)=2x^3-15.4x^2+2.7x+2.25 - Determine the area under f(x) on the interval [-1,8]. Use the zeros rounded to one decimal
Area under f(x) basically is just the definite integral of f(x) within the range, right? You know how to use matlab to do inte...

ongeveer 2 maanden ago | 0

Answered
I am given an array
Do you mean: a = [3 4 5 3 64 7 6 34 8 5 4 3]; m = mean(a); st = std(a); an = abs(a - m) > st; ind = find(an); a(ind) = an(...

ongeveer 2 maanden ago | 0

Answered
Matlab wouldn't find simple inverse
The inverse function is not well defined for all the possible a. For example a=1, there is no reverse function. If a is an o...

ongeveer 2 maanden ago | 1

Answered
Summing every nth column
Your logic is not consistent. from 1 to 300, there are 298 rows in between. But from 300 to 600, there are 299 rows in between. ...

ongeveer 2 maanden ago | 0

Answered
Looking for simulation folder of the work showed in attached link
You see the 'Copy Command' button on the top right corner? It is a shortcut for this command power_motordrive_IPMSM_FOC It wil...

ongeveer 2 maanden ago | 0

Answered
Change working directory to where the mlx file is saved
If that folder is in the matlab's path, you can which your_mlx_file.mlx

ongeveer 2 maanden ago | 0

Answered
Write in column of matrix
Left hand side A is a matrix, but right hand side also an A as a array? Also left hand side shall be A(:, 1) Try this: A = z...

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden 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

ongeveer 2 maanden 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.

ongeveer 2 maanden ago | 0

| accepted

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')

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden ago | 1

Load more