Community Profile

photo

Zhangxi Feng


20 total contributions since 2017

Zhangxi Feng's Badges

  • First Review
  • Thankful Level 2
  • Knowledgeable Level 1
  • Revival Level 1
  • First Answer

View details...

Contributions in
View by

Answered
How can I edit a value in multiple text files?
A simple way to do this is to simply write the entire file, I assume it is not a large file. You can do something like this: f...

2 months ago | 1

Question


MATLAB Java Error with Figures
When I plot a figure, the figure with all the intended contents appear. I can rotate the figure, probe the data points, and do o...

2 months ago | 1 answer | 0

1

answer

Question


Windows/Linux file reading with regexp inconsistency?
In my program, I am reading an input text file using the following code: file = fileread(GAFname); fileText = regexp(file, '\r...

2 months ago | 1 answer | 0

1

answer

Question


Can I overwrite a function in a compiled program with a custom version?
I have a set of MATLAB functions with a main function that will be compiled. This program calls a function that requires the use...

6 months ago | 1 answer | 0

1

answer

Answered
How to copy files but not folders from one folder to destination?
For others who may have a similar question, I achieved this goal by using the following: sourceDir = dir(runSource); sourceD...

6 months ago | 0

| accepted

Answered
How to write fitness function in matlab.
Please add some more information for your question so we can better help you. A fittness function is just like any other func...

6 months ago | 0

Question


How to copy files but not folders from one folder to destination?
Not sure why I am having difficulty searching for this but all the questions I found were just about copying specific file or sp...

6 months ago | 1 answer | 0

1

answer

Question


Is there a degree symbol in LaTex or is ^{\circ} the best it can do?
I have searched quite a bit for examples of displaying titles in latex. My goal is to show the following: Bin 0° <= \varphi_2 <...

1 year ago | 2 answers | 0

2

answers

Question


Clear all returns warning evaluatecode.m could not be cleared because it contains the code that is currently executing?
I don't use clear all to clear workspace variables. I only use it at the beginning of the main method (that calls other function...

1 year ago | 1 answer | 0

1

answer

Question


Error using cfit/subsref when trying to fit a smoothingspline
According to documentation, if a fittype is specified, the output becomes [curve,gof] = fit(x,y,fttype) My code is shown as f...

1 year ago | 0 answers | 0

0

answers

Question


Why doesn't legend location have "center"
Quite intriguing why 'Location' doesn't have a 'center' option.

1 year ago | 2 answers | 0

2

answers

Question


What is gamultiobj adaptivefeasible mutation function's scaling factor and how to change it
Hello Community, I have a multi-objective function being optimized by genetic algorithm gamultiobj. I understand the mutation...

1 year ago | 0 answers | 0

0

answers

Answered
How to select column form 3D array and use it in other 3D array?
In your case, a(:,:,n) would actually return the column vector you desire, where n is the nth column since your a matrix is 499 ...

1 year ago | 0

| accepted

Answered
Stop mutation in GAMULTIOBj
Sad no one answers this question. I am trying to understand the whole process more also. I believe making your own creation, sel...

1 year ago | 0

Question


How to format hard drive
I found several threads discussing the danger of using eval where some answers used eval and a string of visually encrypted code...

1 year ago | 0 answers | 0

0

answers

Question


How to pass additional variables into a function handle that is taken as an argument?
How to pass additional variables into a function handle that is taken as an argument? For example, the integral function is u...

1 year ago | 1 answer | 0

1

answer

Answered
How to compare images to find the difference among them at specific locations .
I think you can complete the task if you convert the image into something you can ask MATLAB to numerically compare, such as whe...

1 year ago | 0

Question


patchslim question: how does fnew = indexn(f) work in the code
Patchslim's code can be found here: <https://www.mathworks.com/matlabcentral/fileexchange/29986-patch-slim--patchslim-m-> The...

2 years ago | 0 answers | 0

0

answers

Question


Find an vector in a cell array
I have a cell array of up to hundreds of elements say A = cell(1,100). Each cell has a variety of three-column vectors (all 3-c...

2 years ago | 1 answer | 0

1

answer

Question


tinv function giving wrong values
I used tinv(0.95,16) and it returned 1.746, which is the value for 90% confidence interval at a df of 16. In order to get the co...

3 years ago | 1 answer | 0

1

answer