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

13 days 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,...

13 days 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...

13 days 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...

13 days 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...

13 days 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...

13 days ago | 0

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

15 days ago | 0

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

15 days 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...

16 days 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...

16 days 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...

16 days 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...

17 days 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...

18 days 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/...

18 days 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...

18 days 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...

18 days 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

18 days 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 = ...

18 days 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...

18 days ago | 0

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

19 days 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...

19 days 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...

19 days 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) = ...

20 days 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...

20 days 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...

21 days 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 ...

22 days ago | 0

Answered
extracting mean pixel value from an image
It seems to work for me. The figure in which the ROI object is created needs to be present and needs to contain only one image....

22 days ago | 0

Answered
How do I superimpose images using imfuse() while keeping colors?
The short answer is very simple. Don't use imfuse() for image composition. Imfuse() is a tool for visually comparing two image...

22 days ago | 0

Answered
Why is the waveform of torque for single phase induction motor sinusoidal in Simulink?
It's been years since I had to think about this, but off the top of my head, that seems correct. The stator in a three-phase in...

22 days ago | 0

Answered
Problem in getting proper output image format
The output of rgb2lab() is already of class double(). L is in the range of 0-100. Rescaling L to [0 255] and casting to uint8 ...

23 days ago | 0

Load more