Community Profile

photo

J. Alex Lee


Last seen: Today
216 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
Probelm with web app server
@Martin Andersson, hope you have resolved this by now as it has been over a month, but if not, check your windows service accoun...

ungefär 17 timmar ago | 0

Answered
How to find duplicate file names(same name but different folder address), and write those files in excel with their respective folder address?
Here's a way that doesn't require as many loops and calls to ismember % % uncomment to simulate the results of dir and test % ...

21 dagar ago | 0

Answered
Get all allowed values of a class property
Ah, I should more fully embrace the validator mechanism. Here is a way by defining a custom validator, so in a way less hard-cod...

24 dagar ago | 2

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...

ungefär 2 månader 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 =...

ungefär 2 månader 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

ungefär 2 månader 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...

2 månader 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({'...

2 månader 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()?

2 månader 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...

3 månader 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...

3 månader 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...

3 månader 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...

3 månader 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"

3 månader 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

3 månader 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

3 månader 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 ...

3 månader 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'...

4 månader 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...

4 månader 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...

4 månader 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;...

4 månader 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...

4 månader 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 ...

4 månader 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...

4 månader 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...

4 månader 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 ...

4 månader ago | 1

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

5 månader 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...

5 månader 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...

5 månader ago | 0

| accepted

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

5 månader ago | 0

Load more