Community Profile

photo

Simon Chan


Hospital Authority

2021 以来アクティブ

Statistics

  • 12 Month Streak
  • Pro
  • Knowledgeable Level 5
  • First Answer

バッジを表示

Content Feed

表示方法

回答済み
i want to see each plot figure for every j i have, so how can i do it?
Your for loop states j = length(dt1), which is 3 in your case. So the for loop only do figure 3 for you. Use the following inst...

7日 前 | 0

| 採用済み

回答済み
How to shade the same area in each subplot in a 5x1 Figure?
If you would like to shade the entire region and already knowing the y-limits, you can put the value of those limits directly wh...

7日 前 | 0

回答済み
detecting circle using hough tranform
The range of radius is too small and the sensitivity may not be good enough. I choose radius from 100 to 150 pixels and sensiti...

7日 前 | 1

回答済み
Error using convert2quaterly: The value of 'TT1' is invalid.
Your data has only one column besides the date. So you can only state one method to your data. The following shows an example w...

7日 前 | 0

回答済み
JPG to GIF animation
The colormap for the first two figures are overwritten by the third one in the following: [A,map] = rgb2ind(imread('obr_0.jpg')...

12日 前 | 0

| 採用済み

回答済み
delete consecutive commas in txt file
May be this: rawdata = readlines('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1122645/ca.txt'); iwant = [];...

12日 前 | 1

回答済み
Save a Figure as a .png and .pdf of a Specific Size
Try this to see whether the following is what you want. clear; clc; f = figure; plot(1:10,1:10); % Set figure position after...

14日 前 | 0

回答済み
Import data csv with date/time and other info with setvaropts
Try this: opts = detectImportOptions('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1121365/essai_data_3.csv',...

15日 前 | 1

| 採用済み

回答済み
Start and end date picker to load data to graph
If your weather data are arranged in timetable format, another option you may use is function timerange. Suppose the variable n...

23日 前 | 0

回答済み
Plotting graph with three variables
Try to use function <https://www.mathworks.com/help/matlab/ref/plot3.html plot3> or <https://www.mathworks.com/help/matlab/ref/s...

23日 前 | 0

回答済み
Min and Max values and corresponding x/y values
use two output arguments from function <https://www.mathworks.com/help/matlab/ref/max.html#mw_f4dadb60-ee1a-4996-a37b-2fdd20904f...

24日 前 | 0

回答済み
Average column data with specific values
Use function writetable to convert your data on a table array. Then use function groupsummary as follows G = groupsummary(T,"...

約1ヶ月 前 | 1

回答済み
Integer operands are required for colon operator when used as index.
When you plot the solution, you use the following index: 1:(nt/10):nt However, variable "nt" is equals to 1001 and the result ...

約1ヶ月 前 | 0

| 採用済み

回答済み
How to delete symmetry cells in Matlab?
Try this: F = cell(1,3); F{1} = cell(1,10); F{2} = cell(1,16); F{3} = cell(1,16); F F{2}(9:16)=[]

約1ヶ月 前 | 1

回答済み
Vector as ItemsData property in List Box
Suppose the listbox is defined as follows and ItemsData are given in your example. app.ListBox = uilistbox(app.UIFigure); You ...

約1ヶ月 前 | 0

回答済み
How to draw rectangle with coordinate, height and width provided?
Another option is to determine the coordinates of the lower left corner of the rectangle before you draw it. It can be determine...

約1ヶ月 前 | 0

回答済み
Function in App-Designer struggles to read dropdown values
Use function str2double as follows: % Value changed function: minFrequenzDropDown function minFrequencyDropDownValueC...

約1ヶ月 前 | 0

| 採用済み

回答済み
Remove row if its value is not different enough from the value in the row above it.
Let A be your matrix, try the following: threshold = 100; A([false;(diff(A(:,1))<=threshold)],:)=[];

約1ヶ月 前 | 0

回答済み
How to plot mutiple vertical lines over x axis ?
User function xline is easier.

2ヶ月 前 | 0

回答済み
how to remove arrows in streamslice plot?
Here: clc, clear, close; X = linspace(0,1.5); Z = linspace(-3,3); [z,x] = meshgrid(Z,X); ui = -0.04545*x.^2.*z; vi = x.*(-...

3ヶ月 前 | 0

回答済み
Gensurf / Axis Limitations
Try this: set(gca,'ZLim',[0 5]) or zlim([0 5]); % with bracket

3ヶ月 前 | 0

回答済み
Am I writing an image volume correctly from the Dicom files in a directory?
Looks good except the last two lines. You know the slice location may not be in a correct order and you sort it in the last lin...

3ヶ月 前 | 0

回答済み
Change data tip to your notation
If you would like to replace the name X,Y,Z to "Age", "Male", "Pron. dialog" respectively and display the same values, try the f...

3ヶ月 前 | 0

回答済み
3D - XRD plot
Let's see function plot3 can satisfy your requirement or not. figure; ax = gca; hold(ax,'on'); plot3(ax,SampleA(:,1),repelem...

3ヶ月 前 | 0

回答済み
How to reorder the List box items in created dialogue window?
Attached code for a listbox with move up button callback. If this is what you need, you may also implement the move down button...

3ヶ月 前 | 0

| 採用済み

回答済み
Displaying message in GUI
Use function <https://www.mathworks.com/help/matlab/ref/uiprogressdlg.html uiprogressdlg> or <https://www.mathworks.com/help/mat...

3ヶ月 前 | 0

| 採用済み

回答済み
Fit a spline function to a set of data points
Use function <https://www.mathworks.com/help/matlab/ref/spline.html spline>

3ヶ月 前 | 0

回答済み
How to table the data
Use function array2table A=[1 2 3 4 5 6 8 9 7 1 4 5 1 0 1]; T=...

3ヶ月 前 | 0

| 採用済み

回答済み
How to color an image
Try the following: I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1052130/image.png'); BW = imbina...

3ヶ月 前 | 0

回答済み
Error adding DataTipRows to patch/fill
Try the following: figure; %Produce figure LATLONG.F1 = [0 1 1 0; 1 0 0 1]; %2x4 array ...

3ヶ月 前 | 0

| 採用済み

もっと読み込む