Answered

Correlation of rows of matrix B with rows of reference matrix A

See my normalized cross corrrelation demo, attached.

Correlation of rows of matrix B with rows of reference matrix A

See my normalized cross corrrelation demo, attached.

11 días ago | 0

Answered

Remove black pixels from RGB image.

All black pixels cannot be removed since the image must remain rectangular. You can remove whole rows or whole columns, but not...

Remove black pixels from RGB image.

All black pixels cannot be removed since the image must remain rectangular. You can remove whole rows or whole columns, but not...

11 días ago | 1

| accepted

Answered

Using addpath on Compiled Code

The problem is the CTF root directory is in some weird place that changes from version to version so you'd have to change it eve...

Using addpath on Compiled Code

The problem is the CTF root directory is in some weird place that changes from version to version so you'd have to change it eve...

12 días ago | 0

Answered

Loop for randomisation assignment in table columns

Try this: t = table(randi(9, 5, 1), randi(9, 5, 1)) % Original table % Create A - F columns rows = height(t); % Append colum...

Loop for randomisation assignment in table columns

Try this: t = table(randi(9, 5, 1), randi(9, 5, 1)) % Original table % Create A - F columns rows = height(t); % Append colum...

12 días ago | 0

Answered

Matlab executable not running on remote access files

You can try the FAQ: https://matlab.fandom.com/wiki/FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I...

Matlab executable not running on remote access files

You can try the FAQ: https://matlab.fandom.com/wiki/FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I...

12 días ago | 0

Answered

Convert gray to rgb

How did you call the display function, such as imshow(), in both cases? It should work the same. Are you using GUIDE or App De...

Convert gray to rgb

How did you call the display function, such as imshow(), in both cases? It should work the same. Are you using GUIDE or App De...

12 días ago | 0

Answered

retrieve particular time data from .txt file

Did you try % Read in data from text file with readmatrix() data = readmatrix('t2.txt'); % Extract time into vector t, and th...

retrieve particular time data from .txt file

Did you try % Read in data from text file with readmatrix() data = readmatrix('t2.txt'); % Extract time into vector t, and th...

13 días ago | 1

| accepted

Answered

Can someone help me to see where the error is please?

I think you mean while rem(lx,h) ~=0 || rem(ly,h) ~= 0 promptMessage = sprintf('Incorrect Solution.\nPlease enter a value ...

Can someone help me to see where the error is please?

I think you mean while rem(lx,h) ~=0 || rem(ly,h) ~= 0 promptMessage = sprintf('Incorrect Solution.\nPlease enter a value ...

13 días ago | 0

Answered

how to plot 40 different colors in matlab graph

jaah: Try this: % x and y are your data, in rows of a matrix. numDataSets = size(x, 1); % For example 200 plotColors = jet(n...

how to plot 40 different colors in matlab graph

jaah: Try this: % x and y are your data, in rows of a matrix. numDataSets = size(x, 1); % For example 200 plotColors = jet(n...

13 días ago | 0

Answered

Plotting random points within Boundary

Azra, try this: % Code to find the boundaries of a country on a map and place a specified number of points in it. clc; % Cl...

Plotting random points within Boundary

Azra, try this: % Code to find the boundaries of a country on a map and place a specified number of points in it. clc; % Cl...

14 días ago | 2

| accepted

Answered

How to measure the moon crescent

Ahmad, here is the final code. It works beautifully with your supplied RGB image. clc; % Clear the command window. close a...

How to measure the moon crescent

Ahmad, here is the final code. It works beautifully with your supplied RGB image. clc; % Clear the command window. close a...

15 días ago | 0

Answered

How to run a function on a specific area in mask image

Apply the blurring function to the whole image, then multiply the mask by the blurred image.

How to run a function on a specific area in mask image

Apply the blurring function to the whole image, then multiply the mask by the blurred image.

15 días ago | 0

Answered

Error in Alexnet layer replacement

Do you have the "Deep Learning Toolbox Model for AlexNet Network" installed? If not, use the Add-ons on the Home tab to get it....

Error in Alexnet layer replacement

Do you have the "Deep Learning Toolbox Model for AlexNet Network" installed? If not, use the Add-ons on the Home tab to get it....

15 días ago | 0

| accepted

Answered

Why do my rgb image is different and less defined than pcolor or imagesc outputs?

The images do not have the same resolution. One has 224 rows while the other is smaller with around 125 rows. It looks like th...

Why do my rgb image is different and less defined than pcolor or imagesc outputs?

The images do not have the same resolution. One has 224 rows while the other is smaller with around 125 rows. It looks like th...

16 días ago | 1

| accepted

Answered

How to create a matrix with ones and zeros in one line?

Did you use the equals sign, which is the assignment operator? m19 = [1,0,0,1,1; 0,1,0,1,1]; m20 = [0,0,1,1; 0,0,1,1 0,0,0...

How to create a matrix with ones and zeros in one line?

Did you use the equals sign, which is the assignment operator? m19 = [1,0,0,1,1; 0,1,0,1,1]; m20 = [0,0,1,1; 0,0,1,1 0,0,0...

16 días ago | 0

Answered

How can I compare the multiple strings?

Is this what you want (using ismember to find the index of the sport in the list of all the sports? % Test script: fprintf('Be...

How can I compare the multiple strings?

Is this what you want (using ismember to find the index of the sport in the list of all the sports? % Test script: fprintf('Be...

16 días ago | 1

| accepted

Answered

Matlab question, very stuck

Close but not quite. Try it this way: function [New_Matrix] = sequence_matrix(n) % Detailed explanation goes here New_Matr...

Matlab question, very stuck

Close but not quite. Try it this way: function [New_Matrix] = sequence_matrix(n) % Detailed explanation goes here New_Matr...

16 días ago | 0

| accepted

Answered

How to change image plot tickmark colors

You can change virtually anything. See this demo and adapt as needed: % Demo to make a black graph with red Y axis, green X ax...

How to change image plot tickmark colors

You can change virtually anything. See this demo and adapt as needed: % Demo to make a black graph with red Y axis, green X ax...

17 días ago | 0

Answered

how to convert grey image to RGB

Try function rgbImage = gray2rgb(grayImage) cmap = jet(256); % Or whatever one you want. rgbImage = ind2rgb(grayImage, cmap);...

how to convert grey image to RGB

Try function rgbImage = gray2rgb(grayImage) cmap = jet(256); % Or whatever one you want. rgbImage = ind2rgb(grayImage, cmap);...

17 días ago | 0

Answered

how to find coin value in an image using matlab

This is exactly what my Image Segmentation Tutorial does. Try it: Image Analyst's File Exchange

how to find coin value in an image using matlab

This is exactly what my Image Segmentation Tutorial does. Try it: Image Analyst's File Exchange

17 días ago | 0

Answered

I have a 3D matrix, how to do clustering of this matrix?

Do you know in advance how many clusters there should be? If so, you can use kmeans(). You also need to read and understand th...

I have a 3D matrix, how to do clustering of this matrix?

Do you know in advance how many clusters there should be? If so, you can use kmeans(). You also need to read and understand th...

17 días ago | 0

Answered

how to remove fog pixel noise without blurring the image

It's been done by the University of Dayton (Ohio). Ask them how you can obtain the code. https://udayton.edu/engineering/resea...

how to remove fog pixel noise without blurring the image

It's been done by the University of Dayton (Ohio). Ask them how you can obtain the code. https://udayton.edu/engineering/resea...

17 días ago | 0

Answered

who to Straightening Chromosome (grayscale with white background) Shape

Threshold to get the blob. Then call bwskel() to get the centerline. Then call find() to get the x,y coordinates. Then traver...

who to Straightening Chromosome (grayscale with white background) Shape

Threshold to get the blob. Then call bwskel() to get the centerline. Then call find() to get the x,y coordinates. Then traver...

17 días ago | 0

Answered

i have a code below which plot the first curve, please help me to change this code to plot the second curve

Try this: fprintf('Beginning to run %s.m ...\n', mfilename); fontSize = 20 beta = 0; ind2 = 1; tab_lambda=[0.1:0.01:11.8]...

i have a code below which plot the first curve, please help me to change this code to plot the second curve

Try this: fprintf('Beginning to run %s.m ...\n', mfilename); fontSize = 20 beta = 0; ind2 = 1; tab_lambda=[0.1:0.01:11.8]...

17 días ago | 0

| accepted

Answered

can you tell me what is this problem??

I think you can just not instatiate YwR as sym. Use zeros() instead to instantiate it. YwR = zeros(1, numberOfElements);

can you tell me what is this problem??

I think you can just not instatiate YwR as sym. Use zeros() instead to instantiate it. YwR = zeros(1, numberOfElements);

17 días ago | 0

Answered

linear swept sine wave

I'm not sure if you're changing the frequency in the signal, like a chirp signal, or if you just want to add all those 6 per...

linear swept sine wave

I'm not sure if you're changing the frequency in the signal, like a chirp signal, or if you just want to add all those 6 per...

17 días ago | 0

Answered

matrix loop with changing rows and columns

What is Z? What is the range of columns you want to skip? Why not just do 2 nested for loops? [rows, columns] = size(Z) for ...

matrix loop with changing rows and columns

What is Z? What is the range of columns you want to skip? Why not just do 2 nested for loops? [rows, columns] = size(Z) for ...

17 días ago | 0

Answered

Normalize an image from 0 to 1

mat2gray() and rescale() will both work. If you're only getting 0 and 1 then you have only two gray levels in your image. Post...

Normalize an image from 0 to 1

mat2gray() and rescale() will both work. If you're only getting 0 and 1 then you have only two gray levels in your image. Post...

17 días ago | 0

| accepted

Answered

total beginner stuck around a matrix

Not really sure what you mean by "plot" when it comes to a 2-D matrix. Plot rows? Plot columns? Display as an image? So here ...

total beginner stuck around a matrix

Not really sure what you mean by "plot" when it comes to a 2-D matrix. Plot rows? Plot columns? Display as an image? So here ...

17 días ago | 0

Answered

How to plot values in lower and higher x-values with putting a break in the plot for middle x-values?

There are several submission in the File Exchange that do this: https://www.mathworks.com/matlabcentral/fileexchange/?category[...

How to plot values in lower and higher x-values with putting a break in the plot for middle x-values?

There are several submission in the File Exchange that do this: https://www.mathworks.com/matlabcentral/fileexchange/?category[...

17 días ago | 0