Community Profile

# Yongjian Feng

### MathWorks

Last seen: 1 day 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.

All

#### Content Feed

View by

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

1 day ago | 0

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

1 day ago | 0

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

2 days ago | 0

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

3 days ago | 0

How to change the name of variables inside a file.mat?

4 days ago | 0

| accepted

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

4 days ago | 0

I am given an array with different numbers and I have to compute the same array but with some values changed.
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(...

5 days ago | 0

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

5 days ago | 0

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

6 days ago | 0

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

6 days ago | 0

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

6 days ago | 0

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

6 days ago | 0

| accepted

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

7 days ago | 0

| accepted

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

8 days ago | 0

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.

9 days ago | 0

| accepted

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

9 days ago | 0

| accepted

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

9 days ago | 0

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

10 days ago | 0

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

10 days ago | 0

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

10 days ago | 0

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

10 days ago | 1

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

10 days ago | 0

Solving an equation of 3 unknown variables by inputing 3 sets of data

11 days ago | 0

strcmp function using wildcards
Try regular expression.

11 days ago | 0

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

12 days ago | 0

| accepted

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

12 days ago | 0

| accepted

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.

12 days ago | 0

| accepted

A2L file
Start from the documentation of matlab A2L first?

13 days ago | 0

| accepted