# Tala

Last seen: 19 days ago Active since 2020

Followers: 0   Following: 0

#### Feeds

View by

Question

Retrieve information from a .h5 file
Hello, During an experiment, the data acquisition system unexpectedly failed, resulting in a *.h5 file instead of the usual *.m...

5 months ago | 1 answer | 0

### 1

How to crop an irregular shape from the image?

2 years ago | 0

How to read in several 16-bit images and store their filenames?
Depending on how your filenames, you can alter this code. The current code assumes your images are 145p56, 145p57, 145p58... ...

2 years ago | 0

Hello, I have two vectors (1X1510) that make up a graph. How can i find when the graph slop aims to zero?
You would get a better help if you attach your data! without seeing your grah, you can use this and see the behaviour of your ...

2 years ago | 1

How do I resolve these two lines separately?
try this B=rand(3,5); A=[0 0 0 1 0;1 1 1 0 0;1 0 1 1 0]; B1=B>0.6; A(B1)=1;

2 years ago | 0

Calculating u and v components from wind direction and speed
I have done similar tasks before. If you have experimental data, your sensor should generate two time histories; velocity (Mag) ...

2 years ago | 0

how to display multiple images or dicom images in one figure window?

2 years ago | 0

How to upload multiple images in matlab
you have several options depending on your goal. look at Batch Processing App. or this simple code: for i=1:400 Fil...

2 years ago | 0

how to find the tumor area using newton divided difference interpolation method?
you can combine somesteps in this code, but for educational purposes I have all the steps: I0=imread('image.jpeg'); % read the...

2 years ago | 1

| accepted

Moving graph along x-axis
I would subtitute the other 2 array in the main one and plot that. something lik ethis: id1 = find(blue==yellow(1)); % the ind...

2 years ago | 0

| accepted

How to make the grey area completely black, so it's a binary image?
you mean you want to have the whole tumor area white and the rest of the image black? just threshold your image I=imread('image...

2 years ago | 0

| accepted

Count objects labeled in image
I would plot the centroids as filled black circles and threshold colors smaller than 10! then you only have the centorids and le...

2 years ago | 0

Extruding a 2D plot to 3D
Take a look at this https://www.mathworks.com/matlabcentral/answers/82917-extend-line-plot-to-a-surface

2 years ago | 0

Finding gradient of a part of a graph
A=your signal; dx=epsilon(2)-epsilon(1); % assuming the sampling frequency is constant [M,I] = max(A); B=diff(A(1:I))./dx;

2 years ago | 0

How do I make specific intervalls on a graph with 2 'dips'
islocalmin would do the job! If your data is sharable, I will take a look. You probably need to smooth your data before using is...

2 years ago | 0

Convering 4 data vectors into 3d matrix
You can use the fourth dimension as colormap. take a look at this. in your example you could use: x=[1,2,3,1]; y=[1,2,3,2]; ...

2 years ago | 0

Compute the average of pwelch
not sure what the avarage of pwelch means! maybe avarage energy of your signal? there are better ways to do so...anyways...you c...

2 years ago | 0

how to correlation plots from image
I needs to be grayscale image. you want to convert your image to grayscale before passing ut to your filter. use imgtype = getIm...

2 years ago | 0

How can I improve regionprops() use?
To Matt's point, you do have an object and you should expect to see it's centroid. to avoid this, you can use imcrop to crop out...

2 years ago | 2

| accepted

Welch's method implementation
Instead of the for loop, I would reshape the array first. temp0 = reshape(ecgn,[256,4]); temp1=fft(temp0); temp2=abs(temp1)....

2 years ago | 0

| accepted

comparing the variables of values of two tables
are you sure there is any matching numbers in variables t1.Date3 and t2.date2? Lia2 is an array of 0!

2 years ago | 0

How to solve trigonometric equation x*cos(x)+sin(x)=0 with function fsolve?
trigonometric equations have many solutions. the intersection of blue and black lines are your answers. f = @(x) x.*cos(x)+s...

2 years ago | 0

Help with the below question
x = -10:0.1:10; y = [1 6 0.03 0.08 10]'; A = 23 * (atan((0.005 + y)./x.^2)); B = diff(A,1,2)/0.1; plot(x(1:end-1),B') [v...

2 years ago | 0

I'm new to Matlab and would like to create a moving window for average for contraction force against time data set. Would appreciate any help
I am not sure if I understand what you need! If you want to calculate the moving avarage, try this. M = movmean(yoursignal,k);...

2 years ago | 0

How to crop a masked area (polygon shape) out of an image?
I cannot see your image. But I used a photo of my dog (because she wont sue me :D) to show the concept: I=rgb2gray(imread("Tal...

2 years ago | 1

Plotting 3D scattered data using CSV
T= readmatrix('Participants.csv'); x=T(:,1); y=T(:,2); z=T(:,3); scatter3(x,y,z)

2 years ago | 0

| accepted

How to do background subtraction on a video that has constant movement
If your background is not moving, try foreground detector. If you dont have enough frame that represents your background, reduce...

2 years ago | 0

How can I change an array name within a for loop using the value of the index?
for i= 1988:2020 month{i} =['month_',num2str(i)]; end

2 years ago | 0

How to plot 3d surface plot from excel data
Source is Here. Use this: T = readmatrix('Data.xlsx'); x = T(:,1); y = T(:,2); z = T(:,3); [Ux,iax,ixx] = unique(x); [Uy...

2 years ago | 0

| accepted

Question

Filter out small dust in image!
Hello, I am trying to detect and count moving rocks! Below is a frame from a video. I did the following to get this frame: re...

2 years ago | 1 answer | 0