Community Profile

photo

J. Alex Lee


Last seen: Today
213 total contributions since 2016

J. Alex Lee's Badges

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

View details...

Contributions in
View by

Answered
web() and inputdlg() in App Designer
i think you can get around both limitations with some extra coding...never tried it, and just a thought, but... you could proba...

environ 2 heures ago | 0

Answered
Want to connect 3D scattered data points with line
On way is to do it in a loop. After your code, hold on d = zeros(size(x)); % to hold distances from the first point for i =...

1 jour ago | 1

Answered
Concentric Squares with matricies
Try looking into padarray (or arraypad I can't remember...). I think you can apply successively to achieve what you want

4 jours ago | 0

| accepted

Answered
Storing a loop index value in a dynamic array?
Without trying to get into the weeds of your need, did you know that "unique" can additionally output indices into each argument...

6 jours ago | 1

| accepted

Answered
Extract data from a timetable excluding an specific date
This should work. Most of these steps should be straightforward..."ismember" may have been the key tt_1 = timetable(datetime({'...

6 jours ago | 0

| accepted

Answered
Save plot as logical matrix array with same dimensions as original?
are you looking for imwrite()? or some combination of getframe(), frame2im(), and imwrite()?

9 jours ago | 0

Answered
multiple isntances of custom ChartContainer in a figure
Oops, documentation says that the Parent of an instance of chartcontainer can only be one of Figure object (default) | Panel ob...

23 jours ago | 0

Question


multiple isntances of custom ChartContainer in a figure
I defined a custom matlab.graphics.chartcontainer.ChartContainer class. When trying to populate a uigridlayout with multiple in...

23 jours ago | 1 answer | 0

1

answer

Answered
Copy and re-arrange data from one column into another
Is this what you are looking for? load("~/Downloads/Sample_table_MatLab.mat") a = ["CG", "CG_LOW", "CG_HGH", "MLD", "MLD_LOW...

25 jours ago | 0

| accepted

Answered
plot 2 different time data on the same axis in same graph
To overcome the merged legend issue, you can create an empty plot to make the legend entry T = readtable('TIMEDATA.txt'); fi...

28 jours ago | 0

| accepted

Answered
plot 2 different time data on the same axis in same graph
or potentially you are just looking for "hold on"

28 jours ago | 0

Answered
Calculating number of elements of a vector greater or equal than elements of other vector
R = rand(1,10000); losses = sort(rand(1,2000)); for i = numel(losses):-1:1 counts(i) = sum(R >= losses(i)) end

environ un mois ago | 1

| accepted

Answered
Discrepancy with easy ODE.
You have a syntax error on what your odefun is returning. To fix: function [yp]=fun(t,y) yp=y*(1-y); end

environ un mois ago | 0

| accepted

Answered
Creating iteration to make CSVs that do not overwrite
I agree with Ive J and their solution will work, but if N>9, you may want to include leading zeros. I'm not sure how to do that ...

environ 2 mois ago | 1

| accepted

Answered
Solve differential equation system with ode45
If you want to use ode45, then you have to pose as 5 first order ODEs in place of the 3 you have, by defining new variables J=G'...

2 mois ago | 0

Answered
Solving complicated system of symbolic equations
I like John's comment about visualizing. To expand on this, and Walter's comment that it is trickier to do this in the complex p...

2 mois ago | 0

Answered
Select random numbers from matrix without repetition
And here is a different approach to the contiguous blocks. Instead of checking for overlaps, you can avoid them by tagging eleme...

2 mois ago | 0

Answered
Select random numbers from matrix without repetition
Here is a simple way if you don't need contiguous blocks, but just need to randomly sample elements without repeating L = 1024;...

2 mois ago | 0

Answered
readtable (excel) behavior for string type with empty cell vs spaces
According to Jemima's answer, confirmed that the issue is an internal conversion of the "" to <missing> within readtable. Furthe...

2 mois ago | 0

Answered
Split datetime column data into two column
if you import it as a datetime variable, you can use datetime operations to render into whatever format you want, including one ...

2 mois ago | 0

Question


readtable (excel) behavior for string type with empty cell vs spaces
I am trying to make an excel import function robust to treat either empty cells or cells containing only spaces in a specific wa...

2 mois ago | 2 answers | 0

2

answers

Answered
Can you replace names in struct?
Going out on a limb since as Matt J points out it's not clear what exactly everything is, but... I think what you need is metad...

2 mois ago | 0

| accepted

Answered
Creative way to create a Matlab array from a textfile with multiple headers.
This will grab the data, but it will not be organized...you can change internal storage to suit your needs. I'm curious if this ...

3 mois ago | 1

Answered
Dragable rectangle with text
Ugly, but minimal changes to original code: function drag_drop close all dragging = []; orPos = []; f = figure('WindowB...

3 mois ago | 0

Answered
Number of button groups in GUI depending on user input?
I would question the premise... How about having a listbox that lists each measurement, and only a single button group, whose c...

3 mois ago | 0

Answered
Fit height uitable App Designer
it wouldn't work with the "fit" gridlayout, but if it is really important to you, what i have done in the past is to measure the...

3 mois ago | 0

| accepted

Answered
Fit height uitable App Designer
Look into uigridlayout with the "fit" keyword for row heights

3 mois ago | 0

Answered
How can I plot this type of figures?
Using surf, did you take these steps? L = membrane(3); surf(L,"LineStyle","none") % don't display mesh view(2) % view from to...

3 mois ago | 0

| accepted

Answered
Dataflow in App Designer
Yes, much clearer explanation of your question. All due respect to Sourabh, I do not think you are looking for multi-window app...

3 mois ago | 0

Answered
Newton's method for minimisation returns a critical point
Yes this looks normal, you are only asking to zero the gradient of the function, so naturally that includes non-optimal points w...

4 mois ago | 0

Load more