Community Profile

# Simon Chan

### Hospital Authority

Active since 2021

#### Content Feed

View by

Why legend is not displayed?

ongeveer 11 uur ago | 0

| accepted

How can I plot a bar char from an excel file?

8 dagen ago | 0

| accepted

Having data on yearly basis but want to have it on monthly basis

15 dagen ago | 0

Carry out the sum of all Januarys, Februarys through December in a range of years

27 dagen ago | 0

How to extract all the data between two different dates?
You may use function <https://www.mathworks.com/help/matlab/ref/datetime.isbetween.html isbetween>.

ongeveer een maand ago | 1

| accepted

How to create a gif?

ongeveer een maand ago | 0

| accepted

What really is in each pixel of a DICOM slice ?
You may check the following DICOM Tags:(0028,0100), (0028,0101) and (0028,0102) regarding to the information about number of bit...

ongeveer een maand ago | 2

| accepted

How to convert secondly data to daily data?

3 maanden ago | 0

Suppress figures instead of displaying each one and closing it.
Set the figure to invisble and use f as the handle in the following example if needed. f = figure('Visible','off')

3 maanden ago | 0

Use Matlab Function Block to plot into figure created by Matlab Script
Try this in the function path_plotting function path_plotting(x_pos, x_pos_prev, y_pos, y_pos_prev, ax1) x_coodinates = [x...

3 maanden ago | 0

Dimensions of array being concatenated are not consistent
Variable um1 is a column vector which have the same size as variable t or Ag. However, variable uo is a scalar which is equals t...

3 maanden ago | 0

3D plot of output variables
Try function plot3 data = load('Output100.mat'); plot3(data.Y1,data.Y2,data.t);

3 maanden ago | 0

Add labels to multiple points in scatterplot

3 maanden ago | 0

How to scale the data with matric of lon (1300 x 1300) and lat (1300 x 1300) ?
Use idexing as follows and please verify the variable names you are using. lon_idx = (geo.lon > 118) & (geo.lon < 124); ...

3 maanden ago | 1

| accepted

Changing file path in a loop and save figures
Try this to indicate the entire path: savefig(fullfile(thisDir,'DN.fig'))

4 maanden ago | 1

Exportapp error in saving entire app designer GUI
It support figure object and hence you should use: exportapp(app.UIFigure,[filepath filename]);

4 maanden ago | 0

how to prevent plotting more curve than the axis limit in app uiaxes
Put those data below your limit to NaN. x=1:50; y=randi([-5,25],1,50); threshold = 0; y(y<threshold)=NaN; % Set thos...

4 maanden ago | 0

In Matlab App designer eliminate the gray edge of an "Axes" component
Set the figure color to white. f = figure; f.Color=[1 1 1]; % Set color to white

4 maanden ago | 0

| accepted

Add heatmap into uifigure (No App Manager)
You may use uipanel instead of uiaxes for heatmap

4 maanden ago | 0

detect the largest red object, its centroid and put bounding box around it
use function <https://www.mathworks.com/help/images/ref/bwareafilt.html bwateafilt>

4 maanden ago | 0

Meshgrid lighning and how to use contour around the plot
For the accurate solution, you need to find those x and y where z=0.2 and 0.8. If an estimated solution is accepted, the positi...

4 maanden ago | 1

Surf plot on GUI interface
Create an uiaxes inside the uipanel or you can simply use uiaxes instead of uipanel inside the uifigure.

4 maanden ago | 0

find and store the index value of maximum or minimum value of cell array
[~,idxMax]=cellfun(@max,yourCell); % Index for maximum [~,idxMin]=cellfun(@min,yourCell); % Index for minimum

4 maanden ago | 0

How to create ROI object handle?
You may try the following: h = figure; imshow(imread('pout.tif')); imrect(); % not use the output of imrect() ax=gca; hAx=f...

4 maanden ago | 0

Having issues with fprintf statement. It gives me "error using vertcat"
Missing dots in the second line, try the following fprintf(['j \t k =1 \t k=2 \t k=3 \t k=4 \n'... '- ----...

4 maanden ago | 0

| accepted

How to align both vertically and horizontally annotation box with legend box in plots?
"annotation" dose not have properties of legend command as north, east,... I think you may need to calculate the margin separat...

4 maanden ago | 0

| accepted

How to skip zeros values form a matrix and plot with a time values?
You may put those zero to NaN and plot it. It will skip those points. A = [1,2,3,4,0,6,7,0,9,10,11,0,13,14,15]; t=[1,2,3,4,5,6...

4 maanden ago | 1

Plotting a legend without displaying data on UIAxes
Try this if you would like to show the figure and legend without showing the data. Set the 'LineStyle' to 'none' to hide the li...

4 maanden ago | 0