Answered
My GUI app has a file brows option which is working fine in MATLAB but not working after export to desktop exe
Did you compile your program to a standalone executable? And, if so, did you call filebrowser help filebrowser filebrowser is...

3 years ago | 0

Answered
How to save the output of loop function with different names?
Use exportgraphics: help exportgraphics Sample code snippet. Adapt as needed: folder = pwd; % or 'C;\wherever you want' for...

3 years ago | 1

Answered
How to crop 1 inch
You will need to know how many pixels per inch there are. You can do this by drawing a line along some object in your image tha...

3 years ago | 0

| accepted

Answered
Error: Edge function: variable might be used before it is defined
Try this: edgeData = interp1(xValues(i-1:i + 1),yValues(i-1:i + 1),1:columns,"pchip"); edgeData = round(edgeData); for j = xV...

3 years ago | 0

Answered
Plotting a sine wave going wrong
You're plotting so many cycles that the blue curves all overlap and make the plot solid. Either plot fewer points, or use the z...

3 years ago | 0

Answered
How to count number of only those zeros which are lying between 2 one's in a very simplified way in the given matrix?
Here is one way: a = [0, 0, 0, 0, 1, 1, 1, 1, 0, 0 ,0 ,0 ,0 ,0 ,0 ,1 ,1, 1, 1 ,0 ,0 ,0 ,1 ,0 ,0 ,1 ,1 ,1 ,1 ,1 ,0, 0, 1, 1, 1, ...

3 years ago | 0

Answered
Need help to overlay transparent red on gray scale images (or movie) using a binary mask
You can use the function meant for this: labeloverlay Or see these links: How to overlay a foreground image over a background ...

3 years ago | 0

Answered
i get a couple of errors from my code. I am trying to see if there is an interrelation b/w brightness and counts. I have 2 independent varibles which are device and mode.
To see if there is a correlation between two output variables, regardless of how they were created, wouldn't you just use scatte...

3 years ago | 0

Answered
Plotting the 3D Heat Equation in 2D Slices
"How can I visualize these slices? " <== There are several functions that can display a 2-D slice/matrix: imshow, imagesc, or i...

3 years ago | 1

Answered
How to apply DES Sbox 1?
You can't have a subtraction operation on the left wide of an equals sign: S-box1 = ............... The right side of the equa...

3 years ago | 0

Answered
I am getting wrong text file after extraction process.
Unfortunately you forgot to attach glioma.txt and glioma.jpg. And of course you're saving images out as lossy JPG format, which...

3 years ago | 0

Answered
Generating the edge for a higher intensity pixels and not low intensity pixels.
Not sure what you call low intensity. So if the high intensity mask is all pixels above some threshold, then isn't the low inte...

3 years ago | 0

| accepted

Answered
specify the number of clusters in dbscan
Like @VM Sreeram said, you can't do that directlywith dbscan, though you could iterate varying the parameter until only two clus...

3 years ago | 0

Answered
How to express color in terms of wavelength.
If you need a spectral image, then don't collect an RGB image. Collect an image with more wavelengths in the first place. You ...

3 years ago | 0

Answered
Get rid off white border in spectrum
Try cropping off the last row and column p = p(1:end-1, 1:end-1) then call fft2.

3 years ago | 0

Answered
Finding max peaks and full width/half max for both curves in the given plot
Does the curve fitter give you the equation of the curve? You should be able to figure it out. Just take each Gaussian and set...

3 years ago | 0

Answered
Animation only exporting 1000 frames
See attached demo. Though the demo doesn't have 1000 frames, I see no reason why it should quit making the movie at 1000 frames...

3 years ago | 0

Answered
array processing and sorting
DId you try std and a for loop? This looks like a homework problem. If you have any questions ask your instructor or read the ...

3 years ago | 0

| accepted

Answered
Sum values on the maximum number of consecutive days
Try this (requires the Image Processing Toolbox); % I have a variable (R_3) with the daily data for 1 year (matrix size is 366 ...

3 years ago | 0

Answered
How do I resolve picoscope DLL error?
Try to load it from a script and see if that works folderThatItIsIn = "c:\whatever"; fileName = fullfile(folderThatItIsIn, "ps...

3 years ago | 0

Answered
Finding Highest Frequency Component from a Sound Recording
You have to define eactly, mathematically what you want when you say "maximum frequecncy component". This is vague and imprecis...

3 years ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
In gamma(i)=(f(r,p,Mt,SNR,e)); f returns a variable Wp, which is a vector of MT elements. How are you thinking that you're go...

3 years ago | 0

| accepted

Answered
copy data from work space In a compact way
Let's say your m is your 50*100 matrix in the base workspace, and you want to make a copy of it in your editor (script). Simply...

3 years ago | 0

Answered
how can i get matlab code for this paper
See the FAQ: https://matlab.fandom.com/wiki/FAQ#Can_you_program_up_the_algorithm_in_this_article_for_me_and_explain_it_to_me? ...

3 years ago | 0

Answered
Low pass filter for image
Use fft2, then zero out anything beyond 0.13. I'll leave it to you to figure out what index that is in the spectral image. Thi...

3 years ago | 1

Answered
Sampling frequency for image
Why do you expect only two spatial frequencies. You know that you don't have an infinite cosine wave, right? You know that it ...

3 years ago | 0

| accepted

Answered
I have a 5x6 matrix. I want to calculate sum of only those values which are consecutive nonzero along each row. How to do that? The desired result given in description box.
a = [2 3 1 4 0 0; 0 0 0 0 0 0; 0 0 1 5 7 0; 0 0 0 0 4 0; 4 5 0 0 6 8]; desired_result = [10;0;13;0;23] des...

3 years ago | 0

Answered
Addaxis (multiple y axis on left side)
See this: https://www.mathworks.com/matlabcentral/fileexchange/67349-plot-with-multiple-y-axes

3 years ago | 0

Answered
Opening .mat file using matlab
Try storedStructure = load('C:\Users\X360\Desktop\My Thesis\third trial') All the variables stored in that mat file will be fi...

3 years ago | 0

Load more