Community Profile

photo

Chris


Last seen: Today 2018 年からアクティブ

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
Professional Interests:

Statistics

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

バッジを表示

Content Feed

表示方法

回答済み
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...

6日 前 | 0

| 採用済み

回答済み
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...

6日 前 | 0

回答済み
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...

7日 前 | 0

| 採用済み

回答済み
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...

7日 前 | 0

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

9日 前 | 0

解決済み


expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

10日 前

解決済み


expand intervals
You're given a row vector of an even number of monotonically increasing integers. Each pair of consecutive integers is the lower...

10日 前

解決済み


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

10日 前

解決済み


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

10日 前

質問


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

10日 前 | 1 件の回答 | 0

1

回答

回答済み
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...

11日 前 | 0

回答済み
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...

15日 前 | 0

| 採用済み

回答済み
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()

18日 前 | 0

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

20日 前 | 0

| 採用済み

回答済み
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...

21日 前 | 0

| 採用済み

質問


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

29日 前 | 1 件の回答 | 0

1

回答

回答済み
Need help with car suspension dampening, current code is exp growing.
Looking at the image, a_w and a_c are independent of previous acceleration values. Aw(end+1) = -(1/Mw)*((Cw+Cs)*Zw(end) + Cs*Zc...

2ヶ月 前 | 0

回答済み
Generating PDF and Overplotting from Subset of Data Using Gaussian Mixture Model
I believe the area under the curve of these PDFs is 1. One way to work around that (though probably not the most correct way) w...

2ヶ月 前 | 0

| 採用済み

回答済み
Something unexpected occured when I installed the Bioinformatics toolbox
https://www.mathworks.com/support/contact_us.html Click "Create Service Request" and follow the instructions.

2ヶ月 前 | 0

回答済み
"Manually" adjusting the position of tiles in a tiled layout using Property Inspector
If you have something simple in mind, it's likely you can do so without manually adjusting things: figure('Color',[.8,.8,.8]) %...

3ヶ月 前 | 0

回答済み
How to have only one output from each cell ? (Live Scripts)
These are "sections" in Matlab parlance, because "cell" is taken. There are three display modes for live scripts which can be t...

3ヶ月 前 | 0

| 採用済み

回答済み
Passing variable from MATLAB APP Designer Edit Field to a variable inside a .m file.
m-file: function myFun(x) disp(x); end GUI: Properties x end function x_valueEditFieldValueChanged(app...

3ヶ月 前 | 0

| 採用済み

回答済み
Calculate the coordinates of nodes in a plot3
This is one figure in the x-y plane. The z coordinates should be constant, wherever you choose to set z. If you had several imag...

3ヶ月 前 | 0

| 採用済み

回答済み
How do I prevent rewriting of data in my structure array within a for loop?
Perhaps something like: if buttoncounter<=5 LEN = numel(data1g1); for i=1:buttoncounter % ... dat...

3ヶ月 前 | 0

回答済み
removing outlier from data
It's a sliding window. From the text in the function: % B = RMOUTLIERS(A,..., MOVMETHOD, WL) uses a moving window method to ...

3ヶ月 前 | 0

| 採用済み

回答済み
Matlab RunTime and argc/argv as input arguments of an app?
(1) Is it possible to open this new app in the same instance of Matlab RunTime (that is running the calling app)? I agree, does...

3ヶ月 前 | 1

| 採用済み

回答済み
Hoe to Empty Line Discover!
if isempty(tline) % do something, or nothing? end

3ヶ月 前 | 0

回答済み
Linear indexing over a subset of dimensions
B = permute(A,[2,3,1]);

3ヶ月 前 | 1

回答済み
How to save an indefinite number of outputs to a struct
Do you really need a struct? How about a map? (dictionaries came out in 2022b and should work fine as well) num_params = 3; v...

3ヶ月 前 | 0

回答済み
Requirements for load() argument
The variable fullpath is a string already. When you use 'fullpath' in quotes, that's passing the string "fullpath" to load. Remo...

3ヶ月 前 | 0

| 採用済み

さらに読み込む