photo

Chris


Last seen: 1 month ago Active since 2018

Followers: 0   Following: 0

Message

You know how you can sort of see a flashlight through your hand? Red and near-IR photons scatter throughout the tissue and are infrequently absorbed. I study how to use that effect to measure tissue health. Pic not really related.

Programming Languages:
Python, C, MATLAB

Statistics

All
  • Thankful Level 3
  • 6 Month Streak
  • First Review
  • Knowledgeable Level 4
  • Revival Level 1
  • Treasure Hunt Participant
  • Solver
  • First Answer

View badges

Feeds

View by

Answered
How to export 3D sphere at stl format
You need a triangulation. stlwrite only works with triangles (vs tetrahedrons), which maybe has to do with an stl only defining...

6 months ago | 0

Answered
Exempting imaginary numbers from the output of an expression using an if statement.
You can take the absolute value of each difference: AT = sqrt(s.*abs(s-a).*abs(s-b).*abs(s-c));

6 months ago | 0

| accepted

Question


How should I control label behavior when enabling/disabling elements in app designer?
I've attached a simple app wherein one listbox is disabled by default. In design view, this grays out the label text, as if gray...

6 months ago | 1 answer | 0

1

answer

Answered
Splitting table field with multiple rows into separate columns
Whoops. It looks like each array in Data is a cell, so you'll need to drill down a bit. To repack the first cell: load('Data.ma...

1 year ago | 0

Answered
Splitting table field with multiple rows into separate columns
How about: T = rows2vars(Data); T(:,1) = []; Or, if you really only want the first three: T = table(Data{1,1},Data{2,1},Data...

1 year ago | 0

Answered
Fast calculation of distances between two large arrays
This should be a little bit quicker (my computer indicates ten hours). tol = 0.5; M = rand(1113486,2); N = rand(1960000,2); ...

1 year ago | 0

| accepted

Answered
Plot length of time between two events
Without your code, it's difficult to say what is "easier." Errorbar plots are pretty simple. You could use patch... % My table...

1 year ago | 0

| accepted

Answered
Simple query: how can I remove radial axes (eliminate the "spokes") on a Compass Plot
I think the developers of these functions don't intend for us to be messing with the grids, or haven't gotten around to making i...

1 year ago | 0

| accepted

Answered
I'm having a problem averaging multiple curves using interp1
You take the mean and max of the U values; I believe you want the I values instead. You have plenty of data points, so the defa...

1 year ago | 0

| accepted

Answered
Logical Indexing With LinSpace Issues
This looks like a problem of computer precision. Double-precision floating point numbers in matlab (and floating-point numbers i...

1 year ago | 1

Answered
What is the difference between "any" and "all" function?
B = [0 0 0]; [any(B), all(B)] C = [1 1 1]; [any(C), all(C)] A = [0 1 0]; [any(A), all(A)] If any elements are true, any is...

1 year ago | 1

Answered
Unable to install matlab as it shows error unable to launch matlabWindow application
I would recommend using a Supported OS, probably with Gnome or KDE. If you insist on torturing yourself, start by reading the M...

1 year ago | 1

| accepted

Answered
I would like to modify the equation to calculate total reflection coefficient for N multilayer structure
You could start with an approach like this (numbers are made up): ep = [1 3.9 12 1].'; % The apostrophe transposes the array t...

1 year ago | 0

Answered
set range in plot interactively
Attached is a basic app made hastily in App Designer. There are UI elements including a UIAxes for plotting, and callbacks att...

1 year ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
You've hit the end of the file. The file has 10001 data-containing lines. Your code errors at ii==11, jj==2. block_size (1000...

1 year ago | 2

Answered
Starting the AddOn Manager from the command line
I've just run across the Matlab Package Manager, though I'm not sure it would be helpful for your case either. MPM

1 year ago | 1

Answered
how to rotate image using function notation
If you're using imwarp, you might as well use imrotate, no? You'd be using the function imrotate() to rotate an image, if that's...

1 year ago | 2

| accepted

Answered
How do I input a table column of values into a formula?
The problem, as pointed out by Stephen, is that you are accessing the table data with parantheses, which creates another table. ...

1 year ago | 0

| accepted

Answered
Question regarding how to make a game similar to snake in MATLAB.
You could introduce a "grow" bit for each snake. Set it to false initially. grow = false; If a snake collides with an apple, s...

1 year ago | 0

| accepted

Answered
Calling matlab.engine.connect_matlab() twice freezes Python
names = matlab.engine.find_matlab() if 'MY_SESSION' in names: eng = matlab.engine.connect_matlab('MY_SESSION') You can de...

1 year ago | 0

Answered
Converting an array slicer to Python
Here's a demonstration. import numpy as np lo = -200 hi = 20 x = np.ones((27000,1)) udata = np.ones((27000,10)) columnMa...

1 year ago | 0

| accepted

Answered
How to merge and slice arrays of different sizes?
Perhaps you'd be better off with a cell array. ydata = randi(9,1,8) ydata = num2cell(ydata) udata = num2cell(randi(9,1,8)) u...

1 year ago | 0

Answered
disp(‘hello world’);
disp ('hello world'); Your apostrophes are wrong. How did you generate them? Here is your version: disp (‘hello world’); You ...

1 year ago | 0

Question


I'd like to plot some points over an image in a dialog.
I want to be able to select one point with a left-click, a second point with a right-click, but I'm running into all sorts of tr...

1 year ago | 1 answer | 0

1

answer

Answered
Matlab App Designer get axes name from button click
I would add a tag (under "Identifiers") to the UIAxes. Then: function UIAxesSelectedCallback(app, event) selectedA...

1 year ago | 0

Answered
How to do this temporal plot
Here's one way. For importing data, perhaps something like data=transpose(readmatrix('filename.xlsx',Range','A2:N2002')); Empt...

1 year ago | 0

| accepted

Answered
How do I create a property in a class that is a direct handle to another class object
@Captain Karnage like so? mydef = myDefinition; a = myDefinedObject([],mydef,[]); whos mydef a a.type a.type()

1 year ago | 0

Answered
How to put name axes in 3D surf graph
Same way you would with a 2D plot. xlabel('Gy') ylabel('mm') zlabel('mm')

1 year ago | 0

| accepted

Answered
I want to do a knob for salt and pepper noise but the value of the noise dose not change
function UIAxesButtonDown(app, event) % The default button style doesn't have a value. % chang...

1 year ago | 0

| accepted

Question


Is there exist() functionality for packages/namespaces?
https://www.mathworks.com/help/matlab/matlab_oop/scoping-classes-with-packages.html Create a package and put it somewhere in Ma...

1 year ago | 2 answers | 0

2

answers

Load more