# J. Alex Lee

**Statistics**

RANK**163**

of 271,725

REPUTATION**655**

CONTRIBUTIONS

**8** Questions

**259** Answers

ANSWER ACCEPTANCE **
75.0%
**

VOTES RECEIVED**88**

RANK

of 18,321

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to group statistics by 2 variables for plotting?

are you looking for something like this? load("VolcRegion_clust.mat") T = cell2table(VolcType_clust,"VariableNames",["Region...

1 month ago | 1

| accepted

Increasing speed by fixing axis and grid outside of a loop

I think what Torsten is getting after is: do you intend to keep the history of all the previous pairs you plotted? But I'm goin...

1 month ago | 0

| accepted

morphing a surface over 3D data

It's hard to give specific ideas without knowing the shape, but... "The final goal is to obtain a triangulated surface that con...

1 month ago | 0

how to remove jumps?

Are you looking at the diff() of the signals? Maybe you can find the locations of the jumps as where the largest absolute value ...

1 month ago | 0

| accepted

How to draw a ball by plot3?

like this? but it doesn't use plot3 [x,y,z] = sphere(64); p = surf(x,y,z,"FaceColor","interp","EdgeColor","none"); p.CData = ...

1 month ago | 0

条件ごとに計算させるにはどうすればよいか

Gomen, kana tukaemasen. mask ni kanshiteha "logical indexing" wo search shitemitekudasai: link @(x)fun ni kanshiteha "anonymou...

1 month ago | 2

条件ごとに計算させるにはどうすればよいか

Do you know about the function "atan2", which might be helpful M1 = readmatrix("tmp.txt"); tc = 1/1000000; % no need to...

1 month ago | 2

| accepted

Using readtable (or similar) to import multiple ranges of data

it's hard to say without seeing the csv file, but it sounds like the data is not really tabular, and you may be better off using...

2 months ago | 0

I want to store tables in a for loop to excel

Assuming the columns in the table are always the same, and you generate multiple versions of a table in the loop, and want to sa...

2 months ago | 0

| accepted

How to combine group of plots into one with separate marker

Assuming that each figure only has 1 axes and you want the first axes to be the one you want to copy into fig(1) = open('f1.fig...

2 months ago | 0

enable/disable menu next to radiobuttons when those are selected/deselected

You are hiding how you created the radio buttons in the gui creation, but a big question is whether when you say "2 button group...

2 months ago | 0

| accepted

How to select rows in a table containing both string and numbers?

Look up how to index tables, and ismember. % your table name: modal_displacements % extract the columns of interest, if you ...

2 months ago | 1

| accepted

Undefined function 'isnan' for input arguments of type 'Nodes2'

For reference, a related question that shows more of the actual classes in question: https://www.mathworks.com/matlabcentral/ans...

2 months ago | 1

appdesigner, choosing from dropdown different functions

I suspect your problem is that your conditional is flawed. To test, put in an "else" to check if your conditional is not being m...

2 months ago | 0

| accepted

Shift a curve in logarithmic scale

shifting in log scale is actually a multiplication, not an addition - is that what you need?

2 months ago | 0

| accepted

How to trasform from cell to matrix and transpose from horizontal to vertical at the same time?

Just change your cat dimension to 1, then transpose later. Data.my_cell = {rand(1,101);rand(1,101);rand(1,101)} m = cat(1,Data...

2 months ago | 1

Can I change my UIFigure size while maintaining location of elements in figure?

I think you may be able to achieve what you want using the uigridlayout, see if this example works on 2019b (I'm on 2022a). The...

3 months ago | 0

| accepted

Heatmap is too Thin in Figure

imshow() asserts 1:1 aspect ratio to show the image, so you can manually change the axes Position property after setting DataAsp...

3 months ago | 0

Implementing Crank Nicholson in spherical setting

I believe this should be the right formulation for CN (taking a few liberties interpreting your problem). If you want speed, pr...

9 months ago | 1

Implementing Crank Nicholson in spherical setting

For one thing, your boundary conditions (as developed on your pdf) don't look right. At r=0, you can just directly use Eq 8 LHS...

9 months ago | 0

Question

Built in look-up style interpolation of timetables for non-numeric data?

Is there no built-in function similar to interp1 for numeric data, that can operate on timetables with arbitrary data types? So...

9 months ago | 1 answer | 0

### 1

answerFor loop to carry value down depending on another matrix value

In your example, there is a "delay" by 1 row when your switch from 0 to -1 occurs, so the following answer is not exactly produc...

10 months ago | 0

| accepted

There used to be a function RefineMesh in Matlab used in solving ODE's, but it is now used for PDE's and isn't the same function. Is there a new function for the old purpose?

The workflow above only re-evaluates the "static" solution of ode45 at more data points by an interpolation scheme consistent wi...

1 year ago | 0

Is there a way to measure interletter spacing for Fixed Width font in MATLAB?

I have no idea what you mean by "visual angle per font size", but I know of one way: lbl = uicontrol("Style","text","String","...

1 year ago | 0

Functional programming construct to expand cell array into arguments for other functions without using an intermediate variable in the (user) code?

I am still not sure why you can't just have your generalized comparator function saved as a function somewhere on your path so y...

1 year ago | 1

How to integrate uidatepicker command with GUI interface?

Details are thin here...but it sounds like you need to first specify the parent graphics object that you want your uidatepicker ...

1 year ago | 0

How to solve exponential equation to find unknown constants

data = readtable("Book1.xlsx"); Alternatively, based on my reparameterization above you can as a first pass say everything afte...

1 year ago | 0

| accepted

How to solve exponential equation to find unknown constants

Do you have an intuition of what the graph of looks like? Hint: it looks like your plot, scaled and shifted roughly only in the...

1 year ago | 0

Print vectorized graphic of patches without edges

I now believe it is because you are technically plotting 3D patches (telling Matlab there's a z-coordinate, even if they are all...

1 year ago | 1

Calculations of Angle between two points

If you have the list of 3D coordinates rng(1) % control random generator NPoints = 5 vertices = rand(NPoints,3) You can defi...

1 year ago | 0