Community Profile

photo

J. Alex Lee


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

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

1 jour ago | 0

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

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

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

4 jours ago | 0

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

4 jours ago | 0

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

5 jours ago

Solved


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

5 jours ago

Solved


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

5 jours ago

Answered
Alternative way for nested for loops and if statements
For nested loops you can keep as much outside of the inner loop as possible, in this case the search for placeOfFirst looks like...

5 jours ago | 0

Answered
Overlapping non-square block-diagonal matirce
As long as there are well defined rules for the blocks and their positions in the matrix, direct use of the sparse() function sh...

5 jours ago | 0

Answered
Black mask over pcolor plot
You can assign NaN in your first matrix according to your mask and set the background of your axes to black: A = randi(255,200,...

5 jours ago | 0

| accepted

Answered
Alternation without for loop
Here's a possibility: if A and B were guaranteed to be the same length (your example is not) and row vectors, you could do N = ...

environ 2 mois ago | 0

Answered
Can the background of "Text Area" be transparent?
With R2019b and using the uifigure rather than figure, there is a uihtml() element, which seems to have scroll by default (don't...

environ 2 mois ago | 1

| accepted

Answered
Write a simple txt files made by strings and numbers
With minimal changes to what you have (change space to tab too) tests = vertcat('CT4H12X9','CT5H12X9','CT5H12X8','CT6H12X7','CT...

environ 2 mois ago | 1

| accepted

Answered
Histogram Fitting in Matlab
If you have access to the underlying data... ...and you have a model for the distribution, then you can just do parameter estim...

environ 2 mois ago | 0

Question


Run Web App maximized (fill browser window) by default?
There is a feature for "maximizing" the web app window inside the browser: Is there a way to have the apps run in "full brows...

environ 2 mois ago | 0 answers | 0

0

answers

Answered
Retrieve data of a row in the table
You could do T.pos(T.iwant==542031)

7 mois ago | 0

| accepted

Answered
Can we get gradient of a linear programming problem ?
Your example actually only gave 1 component of the gradient, at an unspecified fixed value of x. The gradient of your scalar fun...

plus d'un an ago | 0

| accepted

Question


overloading elementary operations on custom classes
I want to encapsulate numbers within a class to hold some meta-information about the number, e.g. classdef myClass prop...

plus d'un an ago | 0 answers | 0

0

answers

Solved


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

plus d'un an ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

plus d'un an ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus d'un an ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus d'un an ago

Solved


Assign matrix elements to separate variables
Given an input array, return each element of the array as a separate variable. If the number of output arguments (k) is less tha...

plus d'un an ago

Answered
How to force output of large figure to not be "scaled", or how to properly print a pdf whose dimensions won't fit on the [small] screen
I got a work-around. The issue seems to be that figures are automagically resized when they don't fit on the screen, and this...

environ 3 ans ago | 0

Answered
Set of ODEs with an additional condition
I think this is a differential algebraic equation (DAE)? Documentation for ode15s might help.

environ 3 ans ago | 0

| accepted

Question


How to force output of large figure to not be "scaled", or how to properly print a pdf whose dimensions won't fit on the [small] screen
Hello, I am trying to create a figure that will eventually be "print"ed to pdf at a standard paper size. However, if I tried ...

environ 3 ans ago | 2 answers | 0

2

answers

Question


Why is the parent of a uicontextmenu object always the top level figure?
The |uicontextmenu()| function is supposed to take a parent handle as input, but when querying a resultant's object's parent, I ...

presque 4 ans ago | 1 answer | 0

1

answer