Community Profile

photo

J. Alex Lee


Last seen: Today
180 2016 年以降の合計貢献数

J. Alex Lee's バッジ

  • Revival Level 2
  • 6 Month Streak
  • Knowledgeable Level 3
  • First Review
  • Solver
  • Thankful Level 1
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
How to plot sphere in sphere coordinates?
Your problem is not with conversion or plotting, but defining the coordinates that you want... [phi,theta] = meshgrid(linspace(...

5日 前 | 0

| 採用済み

回答済み
fit curve with parameter
If i understand Rik correctly, I think you'd first have to estimate the t data by computing the cumulative arc length between yo...

5日 前 | 0

| 採用済み

回答済み
how to "convert" user inputted letter and number combination to a row,col position on a plot?
In case you want to make battlship on an insanely large grid, here's a more general solution to convert "Excel column" style lab...

8日 前 | 0

回答済み
Plotting into Multiple Axes in GUI
Any plot command can accept as a first argument a target axes object to plot into.

8日 前 | 0

回答済み
How do I pass a variable number of outputs through two functions?
Currently your GetData function literally has no purpose other than to alias the function you want with other names...the mechan...

9日 前 | 0

| 採用済み

回答済み
minify Matlab code (minimize number of characters)
Partial answer to implement Rik's original stripping of blank lines and full comment lines, and also attempt to squeeze the line...

12日 前 | 1

回答済み
Animating a pointmass sliding down a plane
There's some inconsistency in whether you are treating the angle from vertical or horizontal (effectively). It may also be conce...

12日 前 | 0

| 採用済み

回答済み
How to solve system of nonlinear ODEs with "unusual" boundary conditions?
If you are talking about boundary value problems versus initial value problems, look at bvp4c and bvp5c. There is nothing "unusu...

13日 前 | 0

回答済み
Euler's Method/Improved Euler's Method
The error is telling you that at the first step of your loop (n=1), you are trying to access the n=2nd element of t and y, but a...

15日 前 | 0

回答済み
set uiaxes in matlab function as current figure to plot on
I would argue that it makes more sense (more elegant) to require specifying the parent axes to plot. The way that you want may c...

16日 前 | 0

| 採用済み

回答済み
How to solve unknown coefficients for an exponential fit equation iteratively?
MattJ's answer takes y0 to be known, which Yi Jiao clarified is not the case. Treating y0 unknown and extending MattJ's answer l...

17日 前 | 0

回答済み
Is there a simpler or more efficient way to do the following?
You could for example do this function B = label1(A) [rows,cols] = size(A); B = ["",string(1:cols);[string((1:rows)')+char(9)...

18日 前 | 0

| 採用済み

回答済み
How to filter a structure based on part of nested field names
It's not 100% clear where you are stuck, but it sounds like knowing about "fieldnames()" will help. For data structure design, ...

19日 前 | 1

回答済み
Simulate image data representative of a real experiment
Bjorn's answer contains the conv2() route to blurring fK = exp(-X.^2/dx^2-Y.^2/dy^2); fK = fK/sum(fK(:)); Im = conv(full(dIm)...

22日 前 | 0

回答済み
deconvolution of impedance spectra
the deconvolution operation is denoted "deconv" in base matlab. whether this is what you are looking for is unclear from your qu...

25日 前 | 0

回答済み
Caclulate Horizonzal Area Between Two Curves And Minimize This Area (Optimization Problem)
Take a look at this: clc; close all; clear; % it looks like these are ultimately the curves you want to compare f1 = @(x)...

29日 前 | 1

| 採用済み

回答済み
Appropriate Weights in Exponential Fit
The choice of weighting is unrelated to the computing platform... If you want to use an inverse variance weighting strategy, to...

29日 前 | 0

回答済み
How to speed up the simulation time of a big system of ODEs?
don't use syms

約1ヶ月 前 | 0

回答済み
Indexing arrays of binned data
From what I can gather, it hsould be possible to reorganize your experimental data into a Nx6 matrix called Data, where N is the...

約1ヶ月 前 | 0

回答済み
regression line in quadratic form
[edited] Alternatively, just create a new variable to hold an already sorted "model" experience N = 200; % choose an arbitrary ...

約1ヶ月 前 | 1

回答済み
Reading large excel file using "read" command takes ~5 minutes, is this expected performance?
Try manually creating the import options with spreadsheetimportoptions().

約2ヶ月 前 | 0

| 採用済み

回答済み
How to use datetime as a condition in foor loop?
i believe you can, you just have coded it as a comparison of a datetime to a string. A(i,1) == datetime(2019,1,dd)

約2ヶ月 前 | 0

回答済み
How to fill the gaps in a patch plot through adaptive interpolation
If you reduce your current patches into single (x,y) coordinates, e.g., center of mass, then you can triangulate/find the vorono...

約2ヶ月 前 | 0

回答済み
How to fill the gaps in a patch plot through adaptive interpolation
You could add in "corners" where your red curves intersect the y-axes as new (x,y) coordinates, then do a convexhull on them. Th...

約2ヶ月 前 | 0

回答済み
Preallocation with object structures
I don't think you are understanding "preallocation" correctly based on your last example...matlab is [probably] asking you to "r...

約2ヶ月 前 | 1

| 採用済み

回答済み
Creation of a mask on RGB image
Instead of multiplying pixels in the mask by a constant value, you can mulitply all pixels by an "image" of the saturation multi...

約2ヶ月 前 | 1

| 採用済み

回答済み
Reading data with multiple headers
other experts on the forum for text parsing may have better ways, but you can scan through line by line and apply regular expres...

約2ヶ月 前 | 0

回答済み
How can I get points coordinate on an axes made in GUI?
It sounds like the click is being "intercepted" by the object that you drew on the axes (please don't use the word "figure", bec...

約2ヶ月 前 | 0

回答済み
Matlabでのバーチャルな写真の撮影について
ax.DataAspectRatio = [1,1,1] also ax.Projection = "perspective" and various other "camera"-related properties like: cameravie...

約2ヶ月 前 | 0

| 採用済み

回答済み
How an I manipulate top and bottom x axes individually?
Actually, dpb's suggestion of 2 axes should work as long as you don't turn "box on", and you may need to sync their positions if...

約2ヶ月 前 | 0

| 採用済み

Load more