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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

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

4 years ago | 0

| accepted

Answered
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/...

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

Answered
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

4 years ago | 1

Answered
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 = ...

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

Answered
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) = ...

4 years ago | 0

| accepted

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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 0

Load more