Answered

how to display an image

Looks like it should work, though I'd pull figure(11) outside the loop and put it before the loop. Did it now work like you exp...

how to display an image

Looks like it should work, though I'd pull figure(11) outside the loop and put it before the loop. Did it now work like you exp...

5 days ago | 0

Answered

How to create a nested cell file?

I assume you mean "fields" or "members" rather than folders (like operating system folders where files live). Why do you want a...

How to create a nested cell file?

I assume you mean "fields" or "members" rather than folders (like operating system folders where files live). Why do you want a...

5 days ago | 0

| accepted

Answered

Proximal Hyperspectral data calibration using white and dark reference images.

I don't think you want W and D to be images. You need them to be scalars so the image size doesn't matter. For each wavelength...

Proximal Hyperspectral data calibration using white and dark reference images.

I don't think you want W and D to be images. You need them to be scalars so the image size doesn't matter. For each wavelength...

5 days ago | 0

Answered

imgaussfilt asymmetry as a linear operator

It's because they're random numbers. X and Y are not equal, and neither are the blurred versions. So why would you expect two d...

imgaussfilt asymmetry as a linear operator

It's because they're random numbers. X and Y are not equal, and neither are the blurred versions. So why would you expect two d...

5 days ago | 0

Answered

zoom image with matlab

Normally there is a little axes toolbar that shows up, though sometimes it's not there. If it's not there, you can turn it on. ...

zoom image with matlab

Normally there is a little axes toolbar that shows up, though sometimes it's not there. If it's not there, you can turn it on. ...

5 days ago | 0

Answered

How can i use the variable in the workspace in a different script

If they're in the base workspace, the other script should be able to see and use it. Not if it's inside a function though. For...

How can i use the variable in the workspace in a different script

If they're in the base workspace, the other script should be able to see and use it. Not if it's inside a function though. For...

5 days ago | 0

Answered

Merge the contents of neighboring non-zero cells

Why do you need to to this? I'm thinking you think you need to do this to accomplish some task, but you really don't. That's w...

Merge the contents of neighboring non-zero cells

Why do you need to to this? I'm thinking you think you need to do this to accomplish some task, but you really don't. That's w...

5 days ago | 0

Answered

How to Create Defect Class for Image Processing?

Maybe try thresholding with the 'adaptive' option in imbinarize(). Or try a bottomhat filter with imbothat(). Or try getting a...

How to Create Defect Class for Image Processing?

Maybe try thresholding with the 'adaptive' option in imbinarize(). Or try a bottomhat filter with imbothat(). Or try getting a...

5 days ago | 0

Answered

How to automate extraction of multiple parts of a signal?

You can threshold at 10 or 15 or so, then look for starting and stopping indexes inPeak = gas_lat_env_norm > 10; startingIndex...

How to automate extraction of multiple parts of a signal?

You can threshold at 10 or 15 or so, then look for starting and stopping indexes inPeak = gas_lat_env_norm > 10; startingIndex...

5 days ago | 0

| accepted

Answered

Is it possible to deactivate Matlab without uninstalling ?

I would think so, but I haven't tried it. To install MATLAB you need to write to disk so I don't know why it's now giving you p...

Is it possible to deactivate Matlab without uninstalling ?

I would think so, but I haven't tried it. To install MATLAB you need to write to disk so I don't know why it's now giving you p...

5 days ago | 0

Answered

How should I draw a line?

Try getting the left most point of each array and then using plot. Untested code (because you forgot to attach your data):yLeft...

How should I draw a line?

Try getting the left most point of each array and then using plot. Untested code (because you forgot to attach your data):yLeft...

6 days ago | 0

Answered

labelling TIFF-file for object detection

Not exactly sure what that means, but there is an image labeler app on the Apps tab of the tool ribbon.

labelling TIFF-file for object detection

Not exactly sure what that means, but there is an image labeler app on the Apps tab of the tool ribbon.

6 days ago | 0

Answered

How to make mnist data with my 10 similar 28x28 png images?

See video: https://www.mathworks.com/support/search.html/videos/deep-learning-webinars-2020-part-8-a-deep-dive-into-deep-learnin...

How to make mnist data with my 10 similar 28x28 png images?

See video: https://www.mathworks.com/support/search.html/videos/deep-learning-webinars-2020-part-8-a-deep-dive-into-deep-learnin...

6 days ago | 0

Answered

Needing help registering and avergaing shifted frames

I see: Error using imread>get_full_filename (line 569) File "frame1.tif" does not exist. Error in imread (line 371) full...

Needing help registering and avergaing shifted frames

I see: Error using imread>get_full_filename (line 569) File "frame1.tif" does not exist. Error in imread (line 371) full...

6 days ago | 0

Answered

If I update matlab selecting only MATLAB and a toolbox that I'm interersted into, Will I keep the toolboxes I downloaded earlier?

When you use the Add-on explorer, you can type in the toolbox you want to get. If I remember correctly, you should get a list w...

If I update matlab selecting only MATLAB and a toolbox that I'm interersted into, Will I keep the toolboxes I downloaded earlier?

When you use the Add-on explorer, you can type in the toolbox you want to get. If I remember correctly, you should get a list w...

6 days ago | 1

Answered

histogram of x and y data from a txt file

Looks like Star's answer is what you're looking for. I just wanted to say that skewness is the third central moment of a distri...

histogram of x and y data from a txt file

Looks like Star's answer is what you're looking for. I just wanted to say that skewness is the third central moment of a distri...

6 days ago | 1

Answered

why is this function running infinitely?

You never change Master1 inside the loop so the sum of it never changes and the loop continues forever. Not sure what you're th...

why is this function running infinitely?

You never change Master1 inside the loop so the sum of it never changes and the loop continues forever. Not sure what you're th...

6 days ago | 0

| accepted

Answered

Filtering out spikes in data at n*60 +1

If you know the indexes, how about just setting them to zero, or the median of neighboring values. smoothy = movmedian(y, 5); %...

Filtering out spikes in data at n*60 +1

If you know the indexes, how about just setting them to zero, or the median of neighboring values. smoothy = movmedian(y, 5); %...

6 days ago | 1

| accepted

Answered

Summing every nth column

Try this and see if it does what you want: data = rand(1336, 89700); % Create sample data. sums = zeros(1336, 299); % Prealloc...

Summing every nth column

Try this and see if it does what you want: data = rand(1336, 89700); % Create sample data. sums = zeros(1336, 299); % Prealloc...

6 days ago | 0

| accepted

Answered

MATLAB program: plotting differential equation

Here's a start T1 = 50000; % Initial thrust. T2 = 80000; % Second thrust. m = 20000; v1 = 250; % Initial velocity. % ...

MATLAB program: plotting differential equation

Here's a start T1 = 50000; % Initial thrust. T2 = 80000; % Second thrust. m = 20000; v1 = 250; % Initial velocity. % ...

6 days ago | 0

Answered

Detecting Contour of bubble

Again, not sure what you want since the description is not precise, but here are some options: grayImage = imread('Vaishnavi.pn...

Detecting Contour of bubble

Again, not sure what you want since the description is not precise, but here are some options: grayImage = imread('Vaishnavi.pn...

7 days ago | 0

| accepted

Answered

Summing every nth column

I think this does what you said, though I'm not sure it's what you want: data = rand(1336, 89700); % Create sample data. means...

Summing every nth column

I think this does what you said, though I'm not sure it's what you want: data = rand(1336, 89700); % Create sample data. means...

7 days ago | 0

Answered

How to format my code in this way? Is there any shortcut?

Not sure what you mean, but to indent your code properly, and transfer it from MATLAB to your Answers post, do this In your MAT...

How to format my code in this way? Is there any shortcut?

Not sure what you mean, but to indent your code properly, and transfer it from MATLAB to your Answers post, do this In your MAT...

7 days ago | 0

Answered

How do i code y[n]?

Use parentheses instead of brackets: n = 801; % n must be at least this big. y(n) = x(n) + 0.4 * x(n-400) + 0.4 * x(n-800);

How do i code y[n]?

Use parentheses instead of brackets: n = 801; % n must be at least this big. y(n) = x(n) + 0.4 * x(n-400) + 0.4 * x(n-800);

7 days ago | 0

Answered

Creating a new array that contains number of overlap of non-zero values

Zeros add to zero, so why don't just add up those 4 arrays: s=load('Arrays_11282021.mat') s1 = s.ARV.HEMEsubt_otsu m = s1.mz2...

Creating a new array that contains number of overlap of non-zero values

Zeros add to zero, so why don't just add up those 4 arrays: s=load('Arrays_11282021.mat') s1 = s.ARV.HEMEsubt_otsu m = s1.mz2...

7 days ago | 0

| accepted

Answered

For loop doesn't doesn't summate

number is overwritten every iteration so it will take on only the value from the last iteration. If it's zero at the end then d...

For loop doesn't doesn't summate

number is overwritten every iteration so it will take on only the value from the last iteration. If it's zero at the end then d...

7 days ago | 0

| accepted

Answered

How can I split an increment of 80 rows from 1 column and 102400 data into another column counting 1280 columns?

Do you mean this: velocities = rand(1, 102400); velocities = reshape(velocities, 1280, []); columnMeans = mean(velocities, 1)...

How can I split an increment of 80 rows from 1 column and 102400 data into another column counting 1280 columns?

Do you mean this: velocities = rand(1, 102400); velocities = reshape(velocities, 1280, []); columnMeans = mean(velocities, 1)...

7 days ago | 0

| accepted

Answered

Find row and column of specific array.

What is Q? To get the rows and columns try the meshgrid() function: x = 1 : 5; % 5 columns. y = 1 : 4; % 4 rows. [columnsArr...

Find row and column of specific array.

What is Q? To get the rows and columns try the meshgrid() function: x = 1 : 5; % 5 columns. y = 1 : 4; % 4 rows. [columnsArr...

7 days ago | 0

| accepted

Answered

We want to express the ball bounce in two dimensions.

To animate your plot you can plot one point at a time and then put pause(0.1) in to slow it down. for k = 1 : length(x) pl...

We want to express the ball bounce in two dimensions.

To animate your plot you can plot one point at a time and then put pause(0.1) in to slow it down. for k = 1 : length(x) pl...

7 days ago | 0

Answered

How to write frames into video after applying bounding box ?

Just burn them in. Like if you want it white row1 = ceil(BB(2)); row2 = row1 + BB(4) - 1; col1 = ceil(BB(1)); col2 = col1 +...

How to write frames into video after applying bounding box ?

Just burn them in. Like if you want it white row1 = ceil(BB(2)); row2 = row1 + BB(4) - 1; col1 = ceil(BB(1)); col2 = col1 +...

7 days ago | 0