Community Profile

# Prachi Kulkarni

Last seen: Today Active since 2021

#### Content Feed

View by

How do I write this integral?
Hi, You can write the integral as follows. fun = @(x) 13*exp(-((x-pi)/0.0003).^2); q = integral(fun,0,2*pi)

6 months ago | 0

K-means clustering to generate probability maps
Hi, You can create the M matrix as specified in the problem with the following starter code. You may have to manually reassign ...

6 months ago | 0

Complex valued signal simulation
Hi, The function xcorr supports complex numbers as well. You can use it as it is for complex signals too.

6 months ago | 0

Appending Voxel Intensity with the Voxel Co-ordinates and Plotting ?
Hi, You can use the location and intensity information to create and display a point cloud. load img_64_chest.mat img load vo...

6 months ago | 0

Solve symbolic equation by comparing coefficients
Hi, For a given example expression of the form a*x + y*(b + c*x), you can get the coefficients d and e of the reduced forms as ...

6 months ago | 0

| accepted

Unable to convert expression into double array.
Hi, You haven’t substituted the symbol w with any value. That is why the substitution cannot generate a numeric value. Small ...

6 months ago | 0

| accepted

Find voulume of Tetrahedron
Hi, You can use the following code to compute the volume of the tetrahedron using triple integration. intercepts = input("For ...

7 months ago | 1

| accepted

Normalize hyperspectral image using a target/reference
Hi, If you want to normalize all the data in the hyperspectral image, such that- the minimum of the normalized hyperspectral i...

7 months ago | 1

Using fftn to filter 4D image (3D video)
Hi, Let the array arr be of size h-by-w-by-d-by-t. The filtered_video should be trimmed as follows to get the same output as g...

7 months ago | 0

How to plot graph?
Hi, If you want the plots for each timepoint in separate figures, you can use the following code. r_range = 0:delta_r:1; for ...

7 months ago | 0

Multiple softmax vectors in output layer of neural network using softmaxLayer
Hi, From the R2021b release onwards, you can create numInputs number of fully connected layers, each with output size 8. Every ...

7 months ago | 0

| accepted

getting double plots in single
Hi, If Ex and Ey are the X and Y components and you want to compute the magnitude and phase, you can make some minor changes to...

7 months ago | 0

After running the code, the arrays that should have the calculated values for all the rows are still empty?
Hi, Here is a slight modification of your code that can help. Hi, Here is a slight modification of your code that can help....

8 months ago | 0

Multiple t test in MATLAB
Hi, Please refer to the documentation and examples related to multcompare for multiple comparison tests.

8 months ago | 0

Multiscale dilation:structure unit does not change after imdilate by itself. What the multiscale dilation meaning?
Hi, As per the definition of dilation described at the end of the documentation on imdilate, the structural element g when oper...

8 months ago | 0

Extract k-space from nifti image
Hi, You can use the niftiread function to read the MRI volumetric data from a NIfTI file. If the volume is in spatiotemporal...

9 months ago | 0

CT Scan slices to Neural Network
Hi, You can specify the labels manually using the Labels property of the image datastore. For more information, please refer t...

9 months ago | 0

Overlay statistical info on MR data
Hi, For the code snippet you have provided, here are some modifications that will work. % Create contrived image img = 1500*...

10 months ago | 0

| accepted

How to properly detect the edges of the rail surface for cropping?
Hi, As I mentioned before, there are indeed many different approaches that can be taken to find the edges. Using the color info...

10 months ago | 1

| accepted

How to integrate the discrete data?
Hi, Integration is equivalent to summation in the discrete domain. So, if P is your NxM power matrix, you can compute the total...

10 months ago | 1

| accepted

How to properly detect the edges of the rail surface for cropping?
Hi, There can be many possible approaches to identifying the edges. One possible way would be to look at the image in HSV color...

10 months ago | 0

I have two variables that I need to loop over calculations to find the best combination
Hi, In the code you have provided, the same variable kk is being used to loop over both the variable arrays p_ratio_array and p...

10 months ago | 0

| accepted

Code for a picture to apply filters in frequency domain to it.
Hi, Please refer to the following example for a sample code. I = imread("cameraman.tif"); % image of size 256x256 I = im2doub...

10 months ago | 1

what are the principle components of my model
Hi, The PCA option in the Classification Learner app, uses the pca function. Let your data matrix be called data. You can inse...

10 months ago | 0

Why is wvd output time vector twice the size of the input
Hi, The output time vector tOut of the wvd function is twice the size of the input because the default value for the NumTimePoi...

10 months ago | 0

Can I do Independent component analysis with just one row of data which is a mixture of two source signals?
Hi, Please refer to the following resource about performing independent component analysis. https://www.mathworks.com/matlabc...

10 months ago | 0

How do I simulate Bernoulli observations?
Hi, You can generate the Bernoulli observation and get the statistics as follows. n = 1000; p = 0.2; data = binornd(1,p,n,1...

10 months ago | 0

Hi, If you initially have all the data in a table T and HOUR is one the variables in table T, you can create separate tables de...

10 months ago | 0