Community Profile

photo

Chris


Last seen: Today Actif depuis 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

Statistics

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

Afficher les badges

Content Feed

Afficher par

A répondu
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...

environ 23 heures il y a | 0

| A accepté

A répondu
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...

11 jours il y a | 0

| A accepté

A répondu
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...

15 jours il y a | 1

A répondu
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...

29 jours il y a | 1

A répondu
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...

environ un mois il y a | 1

| A accepté

A répondu
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...

environ un mois il y a | 0

A répondu
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...

environ un mois il y a | 0

A répondu
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...

environ un mois il y a | 2

A répondu
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

environ un mois il y a | 0

A répondu
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...

environ un mois il y a | 2

A répondu
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. ...

environ 2 mois il y a | 0

| A accepté

A répondu
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...

environ 2 mois il y a | 0

| A accepté

A répondu
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...

environ 2 mois il y a | 0

A répondu
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...

environ 2 mois il y a | 0

| A accepté

A répondu
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...

environ 2 mois il y a | 0

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

environ 2 mois il y a | 0

A résolu


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

environ 2 mois il y a

A résolu


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

environ 2 mois il y a

A résolu


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

environ 2 mois il y a

A résolu


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

environ 2 mois il y a

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

environ 2 mois il y a | 1 réponse | 0

1

réponse

A répondu
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...

environ 2 mois il y a | 0

A répondu
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...

2 mois il y a | 0

| A accepté

A répondu
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()

2 mois il y a | 0

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

2 mois il y a | 0

| A accepté

A répondu
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...

2 mois il y a | 0

| A accepté

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

3 mois il y a | 1 réponse | 0

1

réponse

A répondu
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...

4 mois il y a | 0

A répondu
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...

4 mois il y a | 0

| A accepté

A répondu
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.

4 mois il y a | 0

Charger plus