Respondida
Surround color for display
When you mask off data using NaN, the plot is simply not drawn there, revealing whatever graphics objects might be beneath it. ...

alrededor de 4 años hace | 0

| aceptada

Respondida
using nested for loop to print all of factorial
Something like this should be a start: for n = 1:100 % set a nested for loop factorials = 1; % this needs to be reset insi...

alrededor de 4 años hace | 0

| aceptada

Respondida
How may one digitize a curve from an image
These two answers are relevant and contain links to other related answers. https://www.mathworks.com/matlabcentral/answers/16...

alrededor de 4 años hace | 1

| aceptada

Respondida
Problem bluewhitered function colormap
bluewhitered() doesn't work like normal colormap tools. It actually queries the current axes 'clim' property and the map is tru...

alrededor de 4 años hace | 0

| aceptada

Respondida
Function int2bit not found
int2bit() was introduced in R2021b. If you're using R2019b, it's not available.

alrededor de 4 años hace | 0

Respondida
Unable to apply separate colormaps and display in subplots
You can fix that by explicitly specifying the axes in the call to colormap(). original = imread('cell.tif'); h1 = subplot(2,...

alrededor de 4 años hace | 0

| aceptada

Respondida
Extract a series of values every n row of a matrix
Consider the small example: % a small 100x3 test array A = repmat((1:100).',[1 3]) % parameters blocksize = 10; rowstokee...

alrededor de 4 años hace | 0

| aceptada

Respondida
i have been given to find out the psnr value of a hyperspectral image / data. its is of size 690*110*300. how can i proceed to do that?
Consider the example: A = rand(10,10,10); B = A + randn(10,10,10)*1E-6; % using IPT psnr() R0 = psnr(B,A) % using basic...

alrededor de 4 años hace | 0

Respondida
making matrix with text file information
EDIT: updated to handle new file encoding and empty blocks I'm just going to throw this out there. I'm sure it's entirely over...

alrededor de 4 años hace | 0

| aceptada

Respondida
what is meaning of this matlab
How about this % read a spreadsheet with the incomplete filename "prova1" % it is unknown whether the file actually has no ext...

alrededor de 4 años hace | 0

| aceptada

Respondida
Xor(A, B), does A, B have to be the same dimension?
The arguments don't necessarily need to have the same size/shape, but they need to have compatible size/shape. Like many things...

alrededor de 4 años hace | 0

| aceptada

Respondida
scatter 2d plot with value in color
It's not really clear, but here's a guess % two unequal length vectors x = 1:5; y = 1:6; % assuming the vectors imply a un...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to add axis in a figure where I'm drawing lines.
You can set xdata,ydata for imshow() as you do with image()/imagesc(), but by default imshow() will turn off axis visibility. Y...

alrededor de 4 años hace | 0

| aceptada

Respondida
Cumulative Summation down a matrix in loop keeping total per section
Following the what's implied by the example: somedata = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_fi...

alrededor de 4 años hace | 0

Respondida
Strange purple areas after color transfer with Lab color space
I'm not really familiar with LMS, and I don't know what tools you're using to do the LMS conversions, so I can't really test any...

alrededor de 4 años hace | 0

Respondida
How can I find all possible pairs within a range that result in the same average?
I know Steven hinted at it, but I'm just going to give an example. Since the assignment forces you to accept bad decisions (and...

alrededor de 4 años hace | 1

Respondida
Sum the pixel value of this rectangular ROI.
I can only assume that roi is an images.roi.rectangle object and not a logical array. If it is, you can convert it to a logical...

alrededor de 4 años hace | 0

| aceptada

Respondida
Overlay strain map on scan (colored plot over black and white plot)
Take the image you want to be grayscale and expand it to mxnx3 so that it isn't colormapped anymore: https://www.mathworks.com/...

alrededor de 4 años hace | 0

| aceptada

Respondida
Read multi-tiff page by page
You have to specify the frame that you want to read. % the file has a .txt extension so that it can be uploaded A = imread('m...

alrededor de 4 años hace | 0

Respondida
Find pixel coordinates to the right and to the left of a given target pixel
I'm going to assume you already have a method for finding the central line. I'm just going to extract it from the example image...

alrededor de 4 años hace | 0

Respondida
I want to convert a character series into numerical series using for loop
You can use ismember(): thisstr = 'AGGATATC'; charmap = 'ACGT'; [~,idx] = ismember(thisstr,charmap); idx = idx-1

alrededor de 4 años hace | 1

Respondida
Extract certain part of a sentence
What exactly is the delimiter? Is it: an instance of '_P1' followed by anything instr = 'Teddy_Bear_Cat_P12_S19'; prestr = ...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to find the endpoint?
% image recovered from screenshot A = imread('vessel.png'); A = A>128; % binarize % skeletonize B = bwskel(A,'minbranchl...

alrededor de 4 años hace | 0

| aceptada

Respondida
im2gray not working
im2gray() was introduced in R2020b. You're using R2020a. Depending on what you need, you might be able to do it with rgb2g...

alrededor de 4 años hace | 0

Respondida
Is there MATLAB Accessible "Smart Plug WiFi Outlets Surge Protector"?
I would assume the answer is that there is no such thing, especially not if it's WiFi. Not out-of-the-box anyway, and not witho...

alrededor de 4 años hace | 0

Respondida
Multiple plot 'slides' on the same graph
You can use plot3(), but you'll have to configure your data according to what plot3() expects. % some placeholder data % g i...

alrededor de 4 años hace | 0

| aceptada

Respondida
generate matrix by for loop
Don't need a loop. A = [1 -10 4 0 -2 7 5 1 9]; B = zeros(size(A,1),2*size(A,2)-1); % allocate B(:,1:2:end) = ...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to place a specific pixel in a specific coordinate
This is a simple example of plotting color points using a scatter plot. It would take me over an hour to download your data, so...

alrededor de 4 años hace | 1

Respondida
How to show an image with transparent background using uiimage()?
EDIT: I just realized that you were using a uiimage() object. I'm dumb for not reading. As far as I know, uiimage() doesn't su...

alrededor de 4 años hace | 0

Respondida
Matrix dimensions must agree.(error en la linea 133) por favor
If the data in Nx, Ny, Nz, and Fx, Fy, Fz are not in the range of [1 GL], then K will end up getting expanded. At that point K ...

alrededor de 4 años hace | 0

Cargar más