Senior Lecturer in Biomedical Image Analysis at City, University of London. Huge Matlab fan, wrote the book "Biomedical Image Analysis Recipes in MATLAB: For Life Scientists and Engineers" published by Wiley-Blackwell.

Answered

How to Loop to plot histogram and line plot?

The following is not clear and most probably your error: for i=4:8;k=1:2 subplot(1,2,k) plot(Temp(:,3),Temp(:...

How to Loop to plot histogram and line plot?

The following is not clear and most probably your error: for i=4:8;k=1:2 subplot(1,2,k) plot(Temp(:,3),Temp(:...

9 days ago | 0

Answered

fprintf or fwrite non ASCII characters

Have you tried using TeX formatting? I.e. \alpha \sigma \mu https://uk.mathworks.com/help/matlab/creating_plots/greek-letters...

fprintf or fwrite non ASCII characters

Have you tried using TeX formatting? I.e. \alpha \sigma \mu https://uk.mathworks.com/help/matlab/creating_plots/greek-letters...

9 days ago | 0

Answered

Labelling of x axis

There are 2 ways to solve this: First is to plot in the actual hours instead of the points of the matrix that is holding th...

Labelling of x axis

There are 2 ways to solve this: First is to plot in the actual hours instead of the points of the matrix that is holding th...

12 days ago | 0

| accepted

Answered

how to change the plot background?

Most probably the first figure you are showing is and RGB (type "whos" and look for the dimensions it should be rows x columns x...

how to change the plot background?

Most probably the first figure you are showing is and RGB (type "whos" and look for the dimensions it should be rows x columns x...

1 month ago | 0

Answered

Plotting Several 2D Spatial Cross-section Data in 3D (GPR Data)

In terms of functions you can use mesh, surf, isosurface, isocaps and others. But what is more important is what you are trying ...

Plotting Several 2D Spatial Cross-section Data in 3D (GPR Data)

In terms of functions you can use mesh, surf, isosurface, isocaps and others. But what is more important is what you are trying ...

1 month ago | 0

Answered

How to make a bar graph using user input values

Several errors, First, clear your figure every time you play otherwise they will overlap (use clf). Second, you are always...

How to make a bar graph using user input values

Several errors, First, clear your figure every time you play otherwise they will overlap (use clf). Second, you are always...

1 month ago | 0

| accepted

Answered

how to change the type of binarize threshold

I agree with the previous comments, the first T is not a table. So two comments 1) do not use T for a value first and then fo...

how to change the type of binarize threshold

I agree with the previous comments, the first T is not a table. So two comments 1) do not use T for a value first and then fo...

1 month ago | 1

| accepted

Answered

¿Porque no corre mi código? No aparece nada

Hola, Primero unas recomendaciones: 1) te recomiendo escribir en ingles porque en espan~ol es mas dificil tener ayuda 2) te r...

¿Porque no corre mi código? No aparece nada

Hola, Primero unas recomendaciones: 1) te recomiendo escribir en ingles porque en espan~ol es mas dificil tener ayuda 2) te r...

2 months ago | 0

Answered

title according to the file name

Perhaps you want to add values to the titles of your figures, try something like this for k=1:9 subplot(3,3,k) title(...

title according to the file name

Perhaps you want to add values to the titles of your figures, try something like this for k=1:9 subplot(3,3,k) title(...

2 months ago | 1

| accepted

Answered

Plot {(x,y,z)| x²+y²<1, 0<z<x+2}

It depends on what you want. One way to code this would be to define your space, i.e. the range of each of each variable, say x ...

Plot {(x,y,z)| x²+y²<1, 0<z<x+2}

It depends on what you want. One way to code this would be to define your space, i.e. the range of each of each variable, say x ...

4 months ago | 0

Answered

How can I get rid of the gap on the x-axis?

How about axis tight would that work?

How can I get rid of the gap on the x-axis?

How about axis tight would that work?

4 months ago | 0

Answered

How to put separate titles above multiple pcolor subplots

The issue is that you are setting the axis to off with this set(gca,'visible','off'); Your problem will be solved if you use ...

How to put separate titles above multiple pcolor subplots

The issue is that you are setting the axis to off with this set(gca,'visible','off'); Your problem will be solved if you use ...

4 months ago | 0

| accepted

Answered

Help with an ECG signal

Please read the following live script, it describes several of the issues you raised: https://uk.mathworks.com/matlabcentral/...

Help with an ECG signal

Please read the following live script, it describes several of the issues you raised: https://uk.mathworks.com/matlabcentral/...

5 months ago | 1

| accepted

Answered

How can I turn the following matrix into an image?

Well, an image of 16 rows, 16 columns would have 256 pixels. That would be the first consideration, after running your code you...

How can I turn the following matrix into an image?

Well, an image of 16 rows, 16 columns would have 256 pixels. That would be the first consideration, after running your code you...

5 months ago | 1

Answered

How to make '.' Markers transparent in a Scatter plot?

Hello Just tested this in R2019a and it works as for you, I have not yet upgraded to 2020. Just an idea, try to grab the hand...

How to make '.' Markers transparent in a Scatter plot?

Hello Just tested this in R2019a and it works as for you, I have not yet upgraded to 2020. Just an idea, try to grab the hand...

5 months ago | 0

Answered

How create desired number of images in the folder

Hello First of all, if you have folders you better define these: baseDir = pwd; that is the base folder or directory, then ...

How create desired number of images in the folder

Hello First of all, if you have folders you better define these: baseDir = pwd; that is the base folder or directory, then ...

5 months ago | 0

| accepted

Answered

Find matching rows based on specific column values

This is rather easy if you know how to address matrices properly. Take your matrix: >> a=[1 2 5 4 5 7 1 2 9 6 3 2 4 5 1 7 ...

Find matching rows based on specific column values

This is rather easy if you know how to address matrices properly. Take your matrix: >> a=[1 2 5 4 5 7 1 2 9 6 3 2 4 5 1 7 ...

6 months ago | 1

| accepted

Answered

Create boxplots from multistructure cell

Have you considered using 3D boxplots? Have a look here: https://uk.mathworks.com/matlabcentral/fileexchange/68006-boxplot3d...

Create boxplots from multistructure cell

Have you considered using 3D boxplots? Have a look here: https://uk.mathworks.com/matlabcentral/fileexchange/68006-boxplot3d...

6 months ago | 0

Answered

What are the code that i should use ??

This sounds like homework. If you want some help you would need to make some effort and start your own code and ask questions if...

What are the code that i should use ??

This sounds like homework. If you want some help you would need to make some effort and start your own code and ask questions if...

6 months ago | 0

Answered

How can I import Matlab data to XML file ?

Have a look here https://uk.mathworks.com/help/matlab/import_export/exporting-to-xml-documents.html https://uk.mathworks.com...

How can I import Matlab data to XML file ?

Have a look here https://uk.mathworks.com/help/matlab/import_export/exporting-to-xml-documents.html https://uk.mathworks.com...

6 months ago | 0

Answered

How can i synthesis an ECG signal using Matlab

Please visit the following functions in Matlab File Exchange: https://uk.mathworks.com/matlabcentral/fileexchange/68246-visua...

How can i synthesis an ECG signal using Matlab

Please visit the following functions in Matlab File Exchange: https://uk.mathworks.com/matlabcentral/fileexchange/68246-visua...

6 months ago | 0

Answered

how to fuzzify the pixel intensity of an image

I think that what you are referring to as "fuzzifying" is better described as randomness or adding noise. What you can do is sim...

how to fuzzify the pixel intensity of an image

I think that what you are referring to as "fuzzifying" is better described as randomness or adding noise. What you can do is sim...

6 months ago | 0

Answered

RGB and LAB values

RGB, LAB, HSV and many others are colour spaces, that is how to create colours that resemble what natural colours are, see for i...

RGB and LAB values

RGB, LAB, HSV and many others are colour spaces, that is how to create colours that resemble what natural colours are, see for i...

7 months ago | 0

| accepted

Answered

Plotting 1000 signals into one graph

First of all: for (i=1,i<=1000, i++), This is not Matlab, looks like java, in Matlab it would be for i=1:1000 ...

Plotting 1000 signals into one graph

First of all: for (i=1,i<=1000, i++), This is not Matlab, looks like java, in Matlab it would be for i=1:1000 ...

8 months ago | 1

Answered

Filling a Vector with Find Function

This line does not look like Matlab syntax, it looks more like a python loop x [x, find(Call == Win(i,j))]; I would suggest th...

Filling a Vector with Find Function

This line does not look like Matlab syntax, it looks more like a python loop x [x, find(Call == Win(i,j))]; I would suggest th...

8 months ago | 0

| accepted

Answered

How to subplot figures reopened from .fig files correctly when they containing images?

What you have to do is to grab each element by its handles, to grab the handles of a figure you use >> h0=gcf; then you can ac...

How to subplot figures reopened from .fig files correctly when they containing images?

What you have to do is to grab each element by its handles, to grab the handles of a figure you use >> h0=gcf; then you can ac...

8 months ago | 0

Answered

Conv() not working

Could it be that you tried with uppercase C as in Conv and not with lower case as in conv? >> conv([1 1],[2 2]) ans = ...

Conv() not working

Could it be that you tried with uppercase C as in Conv and not with lower case as in conv? >> conv([1 1],[2 2]) ans = ...

8 months ago | 1

Answered

I want to generate spherical from three given arrays, please help me out.

We would need a better explanation of exactly what you want, but I think that the main issues are: 1) you are using sph2cart ins...

I want to generate spherical from three given arrays, please help me out.

We would need a better explanation of exactly what you want, but I think that the main issues are: 1) you are using sph2cart ins...

9 months ago | 0

Answered

a MATLAB function that calculates area of segmented thermal image

Hello This may be possible but cannot help without looking at the image and the area to be segmented.

a MATLAB function that calculates area of segmented thermal image

Hello This may be possible but cannot help without looking at the image and the area to be segmented.

9 months ago | 0

Answered

How to include a vertical scale besides of a polar plot ?

This is easy, but you need to use handles if you want the figure to look like the one you show. And also, you have to think of t...

How to include a vertical scale besides of a polar plot ?

This is easy, but you need to use handles if you want the figure to look like the one you show. And also, you have to think of t...

10 months ago | 0

| accepted