Respondida
Why doesn't matlab have more plot colors?
Well there are 16 million colors and you can use any of them just by specifying the color as a row in a 2-D matrix of the colors...

alrededor de 3 años hace | 2

Respondida
When a global variable is justified
@Valtar by not using app designer because you think it gives you better control, well, I take issue with that. I'd like to see ...

alrededor de 3 años hace | 0

Respondida
finding a trend line where x axis semilog and y axis linear and trend line follow the eqn y=a*exp(b*x)
See attached demo for fitting data to exponentials. Adapt as needed.

alrededor de 3 años hace | 0

Respondida
How to detect a specific region from a given image?
Try this: Threshold the image. If you want to do it interactively, try my utility function https://www.mathworks.com/matlabcen...

alrededor de 3 años hace | 0

| aceptada

Respondida
I am embedding pdf into an Image. But after extraction i am getting blank page pdf. How to extract the correct pdf file whatever i have inserted?
See my attached stego/hiding/watermarking demos. Maybe there is something there that you can use or adapt. Good luck.

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 1

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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, ...

alrededor de 3 años hace | 0

Respondida
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 ...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 1

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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 ...

alrededor de 3 años hace | 0

Respondida
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.

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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 ...

alrededor de 3 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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? ...

alrededor de 3 años hace | 0

Cargar más