Réponse apportée
how can I plot the following graph
z = linspace(1,3500,100); n = 3000*rand(100,5); date = {'05-Mar';'12-Mar';'19-Mar';'26-Mar';'02-Apr'}; f=figure; axes("YDi...

plus de 3 ans il y a | 0

Réponse apportée
Add data tips to figure using code
figure img = rand(800,1000); h = imagesc(img); d = datatip(h); d.DataIndex=353*800+355; d.Location = "northwest"; d2 = d...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to scatter plot when the values are i.e 1,1 and 1,10 grid
What do you want on your y and x axes? sparams.frequency_GHz = 10*rand(41,16); delta = rand(41,16); This one separates the ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to export data and plot from app designer to excel?
Please see the app attached. You can use writetable to save your data to an Excel file. You can use xlswritefig found on the Fil...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Preview in MATLAB GUI
Please see Previewing Data in Custom GUIs. You can use the command: preview(vid, hImage); where hImage is the handle to the i...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Previous legend replaces the new one in a plot, why?
Were you changing the location of the legend as shown below? I made a quick app (attached) using the approach below. plot(rand(...

plus de 3 ans il y a | 0

Réponse apportée
Matching the two columns of two different tables and to combine the common values in second table.
You can use innerjoin or join. See Join Tables.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
highlighting a section of a plot
Here is another approach using area function. x = linspace(500, 4000); y = sin(x); Note, this is only one point, so I illustr...

plus de 3 ans il y a | 2

Réponse apportée
Algorithm to identify certain peaks at certain loation is a graph
You can get the values and index of the peaks and apply the x and y thresholds as shown below: plot (x,y,t,D); [v,idx]=findpea...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
My App does not plot the data i read, why?
You need to get rid of clear on line 60. This removes the uicomponents from the "app" variable. This prevents you from plotting ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I Save all the Variables in the Workspace.
save('filename.mat','-mat')

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to group different values in an array?
t = table; t.intensityofcostcomposition = ["10.0,64.0,NaN"; "15.0,160.0,290.0"; "15.0,160.0,320.0"; ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Mouse position events app designer
If you want a blue outline on an uiaxes, you could enter the following in the start up function: set(app.UIFigure, 'WindowButto...

plus de 3 ans il y a | 0

Réponse apportée
Interpolate points between two coordinates
Since you are doing linear interpolation, you can just use the linspace function. A = [1,7]; B = [6,1]; N = 5; % You can chan...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Start Stop button group not working
The function works for me. pause and play are displayed in the command window. Please see testpauseplay app attached. If you ...

plus de 3 ans il y a | 0

Réponse apportée
Visual 3D coordinate map interactive data Toolbar Settings in APP Design
Zy, Unfortunately, brush is not supported in compiled apps.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
'Exceedes array bounds' In Matlab App
Have you tried debugging the line app.LoadedDataTable.Data = app.DATA(1:15,[1:4,13]); I would check the size of app.DATA I be...

plus de 3 ans il y a | 0

Réponse apportée
Move through slices in 3 D plot matlab?
You could make a slider that changes the variable xslice xslice = 0.5; X = rand(10000,1); Y = rand(10000,1); Z = rand(1000...

plus de 3 ans il y a | 0

Réponse apportée
How to extract year, month, day from character vectors?
var =['1970/01/01' '1970/01/02' '1970/01/03' '1970/01/04' '1970/01/05' '1970/01/06'] % I want to make you aware of Datetim...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to hide data in a UITable ?
You could do this workaround: paramD = struct('name',"frequence",'unite',"GHz",'nb',numel(freq),'liste',{freq,0},'scattering',s...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
App Designer: Standalone Desktop App is not enabled. How to activate?
Do you have a MATLAB Compiler license? You will need this to create a Standalone Desktop App or Web App.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Can we plot horizontal boxchart?
You can add the option 'orientation','horizontal' to your input for boxchart or boxplot. See examples below. load carsmall f...

plus de 3 ans il y a | 1

Réponse apportée
index exceed the number of arrays elements
Collective = rand(1,124); single = rand(1,393); length_collective=length(Collective) %equals to 124 length_single=length(sing...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Request certification and invoice
Please contact Customer Service at service@mathworks.com or via phone 508-647-7000, option 2.

plus de 3 ans il y a | 1

Réponse apportée
How can I use WindowButtonMotionFcn in an app?
Matt, I cleaned up your code and changed the Get_Mouse_Location callback in line 110 (see attached). I got rid of the global ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Cannot Change UIFigure (App) Size Programmatically In 2022a
ILoveMATLAB, I could not replicate your issue. I created an app in R2019b that change the size of UIFigure and then converted...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to make this string a = '(0 0 0)' into a double b = [0 0 0]?
a = '(12 2.8 1.22)' a = strrep(a,')',']'); a = strrep(a,'(','['); b = str2num(a)

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Add User Text Input to Next Line in Table via Button Push in App Designer
Please see the app attached and the code below: methods (Access = private) % Code that executes after component ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Trigger event callback from another event callback
You can simply write CheckedNodesChangedFcn(app) within the 'ButtonPushedFcn' callback

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Histogram or bar graph with greater than bin?
Below is a workaround. a=260*rand(1,252); p=histcounts(a,"BinWidth",10,"BinLimits",[0,250],"Normalization","pdf"); figure ...

plus de 3 ans il y a | 0

Charger plus