Community Profile

photo

J. Alex Lee


12 total contributions since 2016

J. Alex Lee's Badges

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

View details...

Contributions in
View by

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

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

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

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

plus de 2 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.

plus de 2 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 ...

plus de 2 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 ...

plus de 3 ans ago | 1 answer | 0

1

answer