Réponse apportée
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. ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Function int2bit not found
int2bit() was introduced in R2021b. If you're using R2019b, it's not available.

presque 4 ans il y a | 0

Réponse apportée
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,...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 1

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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/...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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

presque 4 ans il y a | 1

Réponse apportée
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 = ...

presque 4 ans il y a | 0

| A accepté

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

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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) = ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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 ...

presque 4 ans il y a | 0

Charger plus