Community Profile

photo

J. Alex Lee


Last seen: Today
53 total contributions since 2016

J. Alex Lee's Badges

  • First Review
  • Knowledgeable Level 2
  • Solver
  • Thankful Level 1
  • First Answer

View details...

Contributions in
View by

Answered
Branching a WindowButtonDown function
If you don't mind using undocumented features, I have had success using the standard axes() object instead of uiaxes(), because ...

environ 6 heures ago | 0

Answered
Proper reading of .txt
Just use readtable()? Looks like every station will have already-aggregated results (hourly vs daily for the same station, same ...

2 jours ago | 0

| accepted

Answered
ODE solver: how to integrate a system with a vector of parameters?
Are you just looking for solving the ODE as many times as you have different values of V? t = [0 400]; y = [0.004 0 0]; alpha...

2 jours ago | 0

| accepted

Answered
Limiting mouseclick event to current Axes in App Designer
Cameron's idea of calculating the axes position within the figure position should work, and it is the only way with currently do...

4 jours ago | 0

Answered
How to access left bottom pixel in image using (0,0)?
If you just want to translate the unflipped image's row index to be translated into a different index as if you were indexing th...

7 jours ago | 0

Answered
How to access left bottom pixel in image using (0,0)?
Since you seem to want to "index" by (0,0), perhaps what you are looking for is assigning real (x,y) coordinates to the image an...

7 jours ago | 0

Answered
How to access left bottom pixel in image using (0,0)?
How about if you flip the image? % if the image is in I I = flipud(I)

8 jours ago | 0

Answered
how make the plot continuous ?
If I understand correctly, you want the "plot" command to produce a vertical "line" at x=6. To do this, you could duplicate the ...

8 jours ago | 0

| accepted

Answered
this code is taking a lot of time to run,
If all the files have the same format, I have seen big improvements using detectImportOptions() on the first file re-use those o...

8 jours ago | 0

| accepted

Answered
Background Color of UIAxes
It is possible to create a regular "axes" within a "uifigure". Can you try that and see if you can accomplish what you need? Thi...

15 jours ago | 0

Answered
Installing and running matlab app able to load and process .mat file
If the problem is that the standalone app can't find the file to load in the first place, you need to understand how paths work ...

15 jours ago | 0

Answered
calling a function inside an app?
Functions need inputs and outputs, so you will need to define the function su as function out = su(app) out = app.a+app.b ...

19 jours ago | 0

| accepted

Answered
Solving a second order differential equation
In you function Q5, your 2nd row has a typo, using y instead of y(1)

20 jours ago | 0

Answered
How to plot solid and dashed lines?
You need to precede the linestyle you want with the keyword 'LineStyle' plot(x,y,'Color','k','LineStyle','--') so "LineStyle" ...

21 jours ago | 1

| accepted

Answered
Image segmentation approach to segment lines based on patches
If the shapes you want to segment are parameterizable, and especially if you know how many there are (3 rectangles in this case)...

21 jours ago | 0

| accepted

Answered
Working with tables that are within a timetable
I would first flatten the table, especially if you will be making many queries. Something like DataCell = cell(height(TT)...

23 jours ago | 0

Answered
Array indices must be positive integers or logical values.
In your function esb(), you are using the variable "t" as an index, e.g., Q(t) but "t" is defined (via your argument structure...

environ un mois ago | 0

Answered
Extraction of values from a graph.
There is a function called "interp1", which seems like it will suit your need. You have options on interpolation method. T=20:2...

environ un mois ago | 0

| accepted

Answered
How to create and move a line when I put the mouse on an axes?
does the built-in matlab function ginput() do what you want?

environ un mois ago | 0

Answered
Eigenvalues of a Matrix for a mesh of values and 3D plot.
It seems you already understand the problem E(l,m) = eig(H); %Here is the problem because it can't store two values in one grid...

environ un mois ago | 1

| accepted

Answered
Delete all rows in cell array based on value
Do you need the cell array C? Must B be a cell array? If not... A = {table(rand(3,2)); table(rand(3,2)); table(rand(3,2))}; ...

environ un mois ago | 1

| accepted

Answered
Check for specific information in a string from a table
Assuming that parsing your text file to mine the data is a separate and solved problem, your question about identifying the stri...

environ un mois ago | 0

Answered
Merge table rows having same values?
Also, how about this T0 = table([1 3 1]', [2 4 2]', [1 4 nan]', [2 5 9]', [nan 6 9]','VariableNames',{'ID1','ID2','Var1','Var2'...

environ un mois ago | 0

Answered
Merge table rows having same values?
Updated based on Adam Danz's better use of fillmissing(). I think you want to keep the 'stable' keyword rather than 'sort', if ...

environ un mois ago | 0

Answered
How to create a video of fmincon results for each iteration?
Since it looks like you already are able to plot, is the question simply how to create a video from series of plots? If so, a s...

environ 2 mois ago | 0

Answered
fsolve not enough input arguments
You need to supply System() as a function handle to fsolve(). The way you have written it, Matlab thinks you want to simply call...

environ 2 mois ago | 0

| accepted

Answered
Set properties of child objects without synchronisation errors
Is your "ConnectingPipe" class really just the 2 properties, or is that just part of the class? If it's only 2 properties, would...

environ 2 mois ago | 0

Answered
Creating a For loop with fzero having multiple variables and selecting at random an output value
I see at least 2 problems. looping; you're correct there's an issue, misuse of linspace your initial guesses for fzero For th...

environ 2 mois ago | 1

| accepted

Answered
Fill the spaces between circles
just a quick look, but maybe the shaded regions are shared by exactly 2 or 3 circles, not more and not fewer...does that work? a...

environ 2 mois ago | 0

| accepted

Answered
MathLab 2019 backward compatibility
is it possible that in your 2017 environment, you have inadvertently overloaded the "factorial" function?

environ 2 mois ago | 0

Load more