Respondida
How to add Slider properties with in the app designer?
It uses Limits rather than Min, Max to define the limits. Check this: <https://www.mathworks.com/help/matlab/ref/matlab.ui.c...

más de 3 años hace | 0

Respondida
How can I interpolate 13 hour data with each 10 minutes, in every second?
Put the data in timetable and use function retime.

más de 3 años hace | 0

| aceptada

Respondida
How to Display selected image on the same window (App Designer)
Attach a very simple example to import a jpg file for your reference. Note that you may need to modify it according to your nee...

más de 3 años hace | 0

Respondida
How to fix Index position 1 exceeds array bounds (must not exceed 227)
After image resize, the size of the image is always 227x227 in terms of number of rows and columns. However, the original image...

más de 3 años hace | 0

Respondida
Merging Cell Array Elements with cellstr
Try this: merged = cellfun(@(x) cat(2,x{:}),num2cell(cell_temp,2),'UniformOutput',false)

más de 3 años hace | 0

Respondida
Modify cell value of a row based on other cell value in same row uitable
Just move the last comment as an answer. function uitable4_CellEditCallback(hObject, eventdata, handles) % Get the row num...

más de 3 años hace | 0

| aceptada

Respondida
Find the length of a vector up to a certain value
The inner for loop is not necessary and it overwrite itself for every 'n'. You may modify the code as follows. ProbdistPoreden...

más de 3 años hace | 0

Respondida
How can I let my object repeat over time when animating it?
Try to preallocate 'AV' before the for loop and change the data each time inside the for loop: AV = patch('Faces',1,'Vertices',...

más de 3 años hace | 0

Respondida
"regionprops" detecting one line only
load('s.mat') L1 = bwlabel(s); %vislabels(L1); % Ignore the user created funct...

más de 3 años hace | 0

| aceptada

Respondida
How to draw two plots in one figure?
Use function <https://www.mathworks.com/help/matlab/ref/yyaxis.html yyaxis>

más de 3 años hace | 0

| aceptada

Respondida
How to add text to a line in the plot?
If they are horizontal lines, you can use function <https://www.mathworks.com/help/matlab/ref/yline.html yline> By using this...

casi 4 años hace | 0

| aceptada

Respondida
How to get the MathWorks documentation in chinese?
Select the Chinese website with Simplified Chinese at the bottom of the website. Then you can find the translated documentation...

casi 4 años hace | 0

Respondida
Error when selecting variables from an Excel sheet
Better to define the Variable Names already in the spreadsheet as follows: opts = spreadsheetImportOptions("VariableNamesRange"...

casi 4 años hace | 0

| aceptada

Respondida
how to save plot with its background color without the gray color
b_col = [255, 150, 0]; % orange color code b_col = b_col./255; f = figure; f.Color = [1 1 1]; % Set the...

casi 4 años hace | 0

| aceptada

Respondida
Argument of max values of multiple 2D arrays
A1 = [1000 25;3 258]; A2 = [1 30;247 259]; C = 10*(A1>A2) + 20*(A2>A1)

casi 4 años hace | 0

Respondida
How to change axes in tiledlayout with different x and y axes
In order to set the limits, use the following ax1.XLim = [XAxislow XAxishigh]; ax1.YLim = [0 400]; instead of ax1.XLimit...

casi 4 años hace | 0

| aceptada

Respondida
How adding second grid and values in stackedplot
Set the YLim and YTick for that particular axis. X = 0:4:20; Y = randi(5,6,3); f = figure; s = stackedplot(f,X,Y); s.GridVi...

casi 4 años hace | 0

Respondida
Scatter matrix of probability of occurrence
You may use function hiscounts2 rawdata = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/963270/Wav...

casi 4 años hace | 1

| aceptada

Respondida
How to define a colormap easily
Use Colormap Editor by typing 'colormapeditor' in the Command Window. You may also define your own colormap easilty.

casi 4 años hace | 1

| aceptada

Respondida
Struggling with hold on and hold off placements
How about this? L = 2 ; g = 9.81 ; Theta_0 = pi/3 ; % Equations for pendulum p = 2*pi*sqrt(L/g); t = 0:(1/30):2.837 ; The...

casi 4 años hace | 0

| aceptada

Respondida
Change Datetime 'yyyy.MM.dd HH:mm:SSS' to 'HH:mm:SSS'
use function <https://www.mathworks.com/help/matlab/ref/datetime.timeofday.html timeofday>

casi 4 años hace | 0

| aceptada

Respondida
How to remove country boundaries from map?
Just use the default one geoscatter([10 55], [80 140], 18, 'filled', 'r')

casi 4 años hace | 0

Respondida
How to loop over table to caluclate averages?
Check the following: B: quarterly ratios C:annual ratios D:overall average ratio for an arbitrary period rawdata = readtable...

casi 4 años hace | 0

| aceptada

Respondida
How to display text in the same line after processing?
Somthing like this? fprintf('Processing xyz file .....'); a = rand(10000,10000); fprintf('done')

casi 4 años hace | 1

Respondida
How to do simultaneous flickering of two straight line plots
Use function timer to set one timer for plot a and the other for plot b. Attahced please find the function and you can run it t...

casi 4 años hace | 0

| aceptada

Respondida
Can I add unknown number of check boxes in live editor?
Suppose your data is a cell array, update your uitable by the following: uit.Data = [data,num2cell(false(size(data,1),1))]; % ...

casi 4 años hace | 0

Respondida
Putting NULLs in between the string array.
Hope I understand it correctly, try this: A={'a','b','c','d','e'}; index=[1,3,5]; newindex = index+(0:length(index)-1); N = ...

casi 4 años hace | 1

| aceptada

Respondida
Why am i getting 'Array indices must be positive integers or logical values" when trying to plot this function?
Remove the x1, otherwise it becomes the index of the varaibles f1,f2 & f3 where index must be a positive integers. That's why yo...

casi 4 años hace | 0

| aceptada

Respondida
Calculating mean values of a 3D matrix for every rows
Try this: mean(yourmatrix,[2 3]);

casi 4 años hace | 0

| aceptada

Cargar más