Réponse apportée
How can I show the legend to all bars?
Your bar() command specifies "stacked" but since your data only defines one level per bar, "stacked" should be removed. This d...

plus de 3 ans il y a | 0

Réponse apportée
AppDesigner / GUIDE: generate unknown number of new GUI elements as a function
Your quesiton specifies AppDesigner and GUIDE but don't use GUIDE since it will be removed in a future release. Yes, you can pr...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Sorting of column 'folder' present in 'struct'
Sounds like you want natural order sorting. There are some File Exchange submissions that do this (example). But if the forma...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how to take pictures from webcam connected from phone on matlab
Use exportgraphics to capture the image within your axes.

plus de 3 ans il y a | 0

Réponse apportée
Save a Table as a .csv in a Specified Folder
The accepted answer in the question you followed uses fullfile to construct the file path. That's much safer than constructing t...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Would you use Matlab Central in a job search?
I did.

plus de 3 ans il y a | 2

Réponse apportée
Organizing 2D matrices of unequal column length into single 3D array
Use padarray to pad your matricies to a standard size. Then you can concatenate them using cat.

presque 4 ans il y a | 1

| A accepté

Réponse apportée
App Designer data to mat file
If you are saving the data from with an app callback function, then you just need to use save to save the data to a mat file. ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Save figures created on Matlab within a folder
creation_new_folder = mkdir(newfolder); --- "newfolder" is the path to your new folder. "creation_new_folder" is the status of...

presque 4 ans il y a | 0

Réponse apportée
How to use colormap/colorbar for plots
It sounds like you're looking for scatter(x,y,sz,c) x = [0.5:2:18] ; y = [30:10:100]; [a,b] = meshgrid(x,y); c = a(:)+b(:)...

presque 4 ans il y a | 0

Réponse apportée
How to plot a polar plot with theta limited to 180 degrees on both ways
Set the ThetaLim and ThetaZeroLocation properties of polaraxes. See polaraxes properties for more info. If the negative the...

presque 4 ans il y a | 0

Réponse apportée
Shift lables for x and y axis on a graph
Your best bet is to specify the x and y values in pcolor so you don't have to alter the ticks in the first place. pcolor(X,Y,...

presque 4 ans il y a | 0

Réponse apportée
Passing objects from app designer to the workspace
The best way to access the object created by an app is to store the handle to the object as a public property of the app and to ...

presque 4 ans il y a | 0

Réponse apportée
convert strings of characters to bitstring
Looking for dec2bin? charvec = 'Example: converting char vector to binary.'; bin = dec2bin(charvec)

presque 4 ans il y a | 0

| A accepté

Discussion


New in MATLAB R2022b: GridSizeChangedFcn in TiledChartLayout
New in R2022b: GridSizeChangedFcn tiledlayout() creates a TiledChartLayout object that defines a gridded layout of axes wit...

presque 4 ans il y a | 7

Réponse apportée
Convert datetime to string
Use string after formatting your datetime. dt = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss') dtstr = string...

presque 4 ans il y a | 3

| A accepté

Réponse apportée
How to select rows from an array?
See this page of the doc to learn about array indexing. https://www.mathworks.com/help/matlab/math/array-indexing.html Hint: ...

presque 4 ans il y a | 0

Réponse apportée
What velue to use for "smooth3(A, 'gaussian', v)?
Good question @John. The syntax smooth3(A,'gaussian',V) passes the data A through a gaussian lowpass filter with a default st...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
how to identify the mistakes in loop in the given following code?
for i=1:length(q) n=sqrt((D.*zr.*m+s+c.*g0+(A.*((q(i).*h2)/2))))/(q(i).*(((hr+cL.*k).*((D.*q(i))/(m.*p)))+((h1.*q(i)).*((1/...

presque 4 ans il y a | 0

Réponse apportée
Save uitable in Pdf
To save an image of the uitable to a pdf file, use exportgraphics. The second argument, filename, will be a path to your pdf do...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Histogram or heatmap with self-defined values.
You have (x,y) coordinates and my interpretation is that you'd like to use color or another property to represent a third value ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Drawpolygon not working with geoaxes
This is supported in the latest release, MATLAB R2022b. The example below produced the results you described when run in R2022...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
topoplot function is undefined
topoplot is not a function provided by MATLAB (r2022b). A google search for "matlab topoplot" shows several 3rd party functions...

presque 4 ans il y a | 0

Réponse apportée
Plot vector in the points of a solid and "animation" (variation) in the time of them
To add rows of data to a datatip, see this demo that uses the DataTipTemplate https://www.mathworks.com/matlabcentral/answers/5...

presque 4 ans il y a | 0

Réponse apportée
Text inside curve like clabel
> is there a way of writing a text inside a closed curve (e.g. an ellipse) similarly to what would be done with clabel? In shor...

presque 4 ans il y a | 0

Discussion


New in MATLAB R2022b: determine if a vector is uniformly spaced
Uniform spacing and the problem of round-off error The vector [3 4 5 6 7 8 9] is uniformly spaced with a step size of 1. ...

presque 4 ans il y a | 6

Réponse apportée
Hello Guys ,I need a help please solve my problem.
Apparently you're indexing an empty array containing 0 elements but you're asking for a value at a non-zero index. That's about...

presque 4 ans il y a | 0

Réponse apportée
Scanning for floats in different formats
The second data set uses a comma delimiter and you can ignore the top two lines by specifying the HeaderLine property. I've tes...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How can I move legend in app designer?
The legend isn't draggable in your release (R2019b) but it is draggable starting in R2021a.

presque 4 ans il y a | 1

Réponse apportée
Ploting heatmaps in function of time
This demo produces a heatmap with random data and a slider that controls which slice of the 3rd dimension of data to plot. De...

presque 4 ans il y a | 2

| A accepté

Charger plus