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

Statistics

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

Afficher les badges

Content Feed

Afficher par

A répondu
"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]) %...

15 jours il y a | 0

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

15 jours il y a | 0

| A accepté

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

16 jours il y a | 0

| A accepté

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

18 jours il y a | 0

| A accepté

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

19 jours il y a | 0

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

19 jours il y a | 0

| A accepté

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

22 jours il y a | 1

| A accepté

A répondu
Hoe to Empty Line Discover!
if isempty(tline) % do something, or nothing? end

22 jours il y a | 0

A répondu
Linear indexing over a subset of dimensions
B = permute(A,[2,3,1]);

22 jours il y a | 1

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

24 jours il y a | 0

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

26 jours il y a | 0

| A accepté

A répondu
I have a text file with 10 lines and 5 columns. I need to write a value (zero or one) at the end of each row, that is, in the last column of each row. How can i do this?
dlmwrite is deprecated, though you could use it in a similar fashion as below: fname = 'filename.txt'; outname = 'out.txt'; M...

environ un mois il y a | 0

A répondu
How to skip years with no data when reading the data from a website
You could use continue to move to the next iteration of the for loop.

environ un mois il y a | 0

| A accepté

A répondu
DES implementation in MATLAB faacing error in performing XOR operation
a and b apparently do not have the same number of characters. You can confirm this by displaying their sizes: size(a) size(b) ...

environ un mois il y a | 0

A répondu
Is there a way to find the x & y intercepts and give it a label?
[~, idx] = min(abs(H_system_Open-pump_curve)); plot(Q(idx), pump_curve(idx),'k*') text(Q(idx),pump_curve(idx),'Label') If you...

environ un mois il y a | 0

A répondu
splitting range of rows in separate column
A = readmatrix('filename.xlsx'); len = size(A,1); % Make sure array length is divisible by 17. B = padarray(A,[17-mod(len,17)...

environ 2 mois il y a | 0

| A accepté

A répondu
Data extraction after parallel computing
To debug a parfor loop, first remove the par and try to run it as a normal loop. It's possible something in your funcList is no...

environ 2 mois il y a | 0

A répondu
Plotting a legend without displaying data on UIAxes
colororder = {'r','g','b','c','m'}; x = rand(100,5); label = cellstr(num2str([1:1:size(x,2)]', 'cluster%d')); % Plot a p...

2 mois il y a | 0

| A accepté

A répondu
rename single .txt file with changing seed number
Do you know the seed? testSeed = 454; NewTest = strcat('C:\Users\PC\Desktop\TestData', num2str(testSeed), '.txt') If you want...

2 mois il y a | 1

| A accepté

A répondu
How to export sub/nested structures using writestruct?
If you want to write to a single output file, writestruct() already supports nested structs containing scalar or vector values. ...

2 mois il y a | 0

| A accepté

A répondu
How to export sub/nested structures using writestruct?
In step 3, you are trying to do an rmfield operation on a string array (rmfield is for structs only). If you want to remove the ...

2 mois il y a | 0

A répondu
underwater acoustic wave Signal to Noise Ratio (SNR)
Your individual noise sources add up to a decreasing signal, and I'm not sure af is on the right scale. Should S in the noise e...

2 mois il y a | 1

A répondu
How to avoid rounding error
Matlab is simply truncating the displayed value for ease of reading. format longG sqrt(10001) In both cases, the actual value...

3 mois il y a | 0

| A accepté

A répondu
I keep getting this error...
In your workspace, does a already exist, or some other arduino object? if so, type clear a (or the other relevant object) in ...

3 mois il y a | 1

A répondu
Graph gives warning : function behaves unexpectedly on array inputs. What does this mean?
You are using matrix (linear algebra) operators, which include * and ^. If you try to calculate the function directly, You get a...

3 mois il y a | 1

| A accepté

A répondu
Creating a struct with means and standard deviations
It looks like you want an array of structs. Use strings or uint64 for the IDs S = struct('id',uint64(123456),'mean',rand(3),'st...

3 mois il y a | 0

| A accepté

A répondu
How to make specific elements of a cell equal to zero?
If there's a single value in each cell, you could first convert to a matrix. A = num2cell(rand(3)) Amat = cell2mat(A); Amat...

3 mois il y a | 0

| A accepté

A répondu
I want to draw a scatterplot but there's a problem about range of color
To specify a custom range, you can use a pre-defined RGB colormap (replace 6 with 101 or whatever is appropriate) c1 = parula(6...

3 mois il y a | 0

| A accepté

A répondu
add Gaussian distributed noise
Use normrnd

3 mois il y a | 0

A répondu
For loop error, not getting desired output
At the end of the inner for loop, you set all_correct(columns,1) = correct; Columns == 3 forever, and correct == 4 by that poi...

3 mois il y a | 0

| A accepté

Charger plus