Community Profile

photo

Yuji Zhang


Tufts University Medford

Aktiv seit 2011

Followers: 0   Following: 0

Kontakt

I'm a Ph.D. student working on nonlinear optics. I use Matlab to process experimental data and, the more complicated thing is, perform numerical simulation of light propagation based on partial differential equations.
Professional Interests: nonlinear optics

Statistiken

  • First Review
  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


display rescaled matrix as image: imagesc vs wcodemat
Hi I tried two ways to rescale a matrix and display as an image: imagesc and wcodemat. Worded well in Fig 1. But in figure 2:...

etwa 9 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
number divided by vector
I think I figured out myself. Division is defined by multiplication. For any A, B, and C, A/B = C means A = B*C. Note ...

mehr als 9 Jahre vor | 0

Frage


number divided by vector
Hi everyone~ I divided a number by a vector and forgot to use ./ Why it didn't report error and gave me some result? What's the...

mehr als 9 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


is x' * x faster than x.^2 (x is a vector)
Hi~ Somebody recommended me to use x' * x. Is it faster than sum(x.^2) ? Any thoughts are appreciated. Thanks! [EDITED, s...

mehr als 9 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


access values in dataset
hi In the results of lm = LinearModel.fit(x, y) there is lm.Coefficients containing the coefficient values. E.g., >...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


what does c(:).' mean? c should be a vector
Hi I saw this in Matlab document: function obj = DocPolynom(c) % Construct a DocPolynom object using the coefficients...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


waterfall appear to be out of box
Hi everyone, One waterfall plot appears that the curve are for outside the axis range. See this... Does anyone know how to fi...

fast 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


how to see the script of build-in function?
Hi all~ I put "edit sum" in the command line. And I only saw the notes about it (begin with %). How can I see the script of t...

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


reverse of fnval: evaluate the variable for given value of function
Hi everyone~ See the picture. The blue dots are my data. I want to find out at what x values the function drop to -20 (red ci...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


curve fitting: how to get the fitting curve?
Hi everyone~ I did some curve fitting using curve fitting toolbox. But I don't know how to get the fitting curve. Can somebo...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


about axis ticks: how to set 10 ticks with 5 labels?
Hi everyone, I want the axis to have ticks at 1:1:10, and tick labels only at 2:2:10 Anybody know how to do this? I tri...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


figures got chopped when saved using "print"
Hi everyone~ I plot some figures, and save them to .tif file using "print" But it often got chopped. I use the code ...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


multiple fittings in comparison in curve fitting toolbox
Hi everyone~ I'm using the curve fitting toolbox, for curve fitting, of course. I couldn't figure out how to show multiple...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


-v7.3 switch
Hi everyone~ I had problem saving a large variable (It's a cell. I think the problem is it's very large) The message is th...

mehr als 10 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


loss of details using "print"
Hi everyone~ I was trying to plot some nice graphs. I tuned everything. It shows what I want in the Matlab plot window. But w...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


pcolor - how to smooth
Hi everyone~ I'm plotting some contour map (x, y, z) If I use Origin, it does some nice smoothing. In Maltab, using ...

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


why definition of sine transform is not consistent with FFT?
<<https://lh4.googleusercontent.com/-QiXTlOnPnxE/UhRwYWPguoI/AAAAAAAAAx0/h2iASWeaI18/w1027-h432-no/dst.jpg>> See the picture....

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


the size of plot using "print"
Hi everyone~ I have a question about saving plot as pictures. I heard of the Oliver Woodford code but still want to check wi...

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


genvarname -> Index exceeds matrix dimensions.
Hi everyone~ I have a quite stupid question here. genvarname doesn't work here, like this: >> vname = genvarname ('aaa'...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


manually run ode45 step by step - and impose filter to the half-way solution
Hi everybody~ I'm solving a ode: %% code 1 t = [tt1 tt2 tt3 ... tt100]; [t, y] = ode45(@equation, t, y1, optio...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how to create customized curve ( only know the shape )
<<https://lh5.googleusercontent.com/-carEAOQXYm4/UcA2uOb251I/AAAAAAAAArQ/gBZKnJAQ8_o/w356-h463-no/curve.jpg>> Hi everyone~ ...

fast 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


about gradient and diff
The help of my matlab says: (in article "gradient -Gradient vector of scalar function") -If x is a scalar, gradient(f,x) = ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


doing derivative using diff(Y)/dT makes the vector shorter
Hi everybody, I'm doing derivative of a curve Y-T I think it's: T = linspace(-t, t, n); Y = somefuction; dT = T(2)-T(1...

fast 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


syntax of handle: f = @(X)find(X);
Hi everyone~ I'm learning about use handle. The usual syntax is h = @FuncName But I also saw an example of f = @(X)find(X...

fast 11 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


"find" function doesn't work
Hi~ I got a weird problem here. See the attached picture. "find" works for some values and doesn't for some others. It could a s...

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort