Réponse apportée
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...

plus de 3 ans il y a | 2

Réponse apportée
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',...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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,"...

plus de 3 ans il y a | 1

Réponse apportée
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 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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)=[]

plus de 3 ans il y a | 1

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
Function in App-Designer struggles to read dropdown values
Use function str2double as follows: % Value changed function: minFrequenzDropDown function minFrequencyDropDownValueC...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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)],:)=[];

plus de 3 ans il y a | 0

Réponse apportée
How to plot mutiple vertical lines over x axis ?
User function xline is easier.

plus de 3 ans il y a | 0

Réponse apportée
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.*(-...

plus de 3 ans il y a | 0

Réponse apportée
Gensurf / Axis Limitations
Try this: set(gca,'ZLim',[0 5]) or zlim([0 5]); % with bracket

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Displaying message in GUI
Use function <https://www.mathworks.com/help/matlab/ref/uiprogressdlg.html uiprogressdlg> or <https://www.mathworks.com/help/mat...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Fit a spline function to a set of data points
Use function <https://www.mathworks.com/help/matlab/ref/spline.html spline>

plus de 3 ans il y a | 0

Réponse apportée
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=...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to color an image
Try the following: I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1052130/image.png'); BW = imbina...

plus de 3 ans il y a | 0

Réponse apportée
Error adding DataTipRows to patch/fill
Try the following: figure; %Produce figure LATLONG.F1 = [0 1 1 0; 1 0 0 1]; %2x4 array ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to implement Multi-Otsu Thresholding in matlab?
Use function <https://www.mathworks.com/help/images/ref/multithresh.html multithresh>

plus de 3 ans il y a | 1

Réponse apportée
Adding additional information on plot tooltip
Use function <https://www.mathworks.com/help/matlab/ref/matlab.graphics.datatip.datatiptextrow.html dataTipTextRow>

plus de 3 ans il y a | 2

Réponse apportée
How do I convert numbers of the form "12,109,987" stored in strings
use function <https://www.mathworks.com/help/matlab/ref/str2double.html str2double> instead of str2num

plus de 3 ans il y a | 0

Réponse apportée
How to create multiple answers accepted questions in Matlab script?
Use function listdlg with multiple SelectionMode.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Unrecognized function or variable 'm_equations'
Move the line function MorrisLecar to be the first line of your entire code.

plus de 3 ans il y a | 0

Réponse apportée
Concatenate three-dimensional matrices
This is the third dimension, hence cat(3,A,B)

plus de 3 ans il y a | 1

| A accepté

Charger plus