Beantwortet
How to set the number of digits in a .txt file?
If you're using these values as numeric values, then you don't need the leading 0 since 056 is the same as 56. If you're usin...

etwa ein Monat vor | 0

Beantwortet
Find the percentage of area occupied by an object
Assuming that this is an image and that the pink color is a single RGB color value, you could compute the number of pixels with ...

etwa ein Monat vor | 1

Beantwortet
block plotting a figure
This is a common problem which often arises from functions that produce sanity-check visualizations or other windows to underlyi...

etwa ein Monat vor | 1

Beantwortet
Shutdown at specific time
This solution displays a confirmation dialog that indicates to users that MATLAB will close unless they decide to cancel the aut...

etwa ein Monat vor | 0

Beantwortet
Change the position of a pie chart
The solution below rotates the set of objects that create a pie chart by using an hgtransform. The text label alignment needs...

etwa ein Monat vor | 0

Beantwortet
Undefined function 'imsegkmeans' for input arguments of type 'uint8'.
imsegkmeans accepts uint8 values which means either You don't have the image processing Toolbox, or You are using a MATLAB re...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Cell entries as the third dimension of the cell2mat matrix.
Compute B outside of the loop for k=1:N for j=1:N A{k,j}=S(:,j).*D(k,:).'; end end B = permute(reshape(hor...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Disable help tips in app designer
Setting preferences to control suggestions and completions From the MATLAB Environment, go to the Home tab, and open Preferen...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Pop-ups don't appear when starting from AppDesigner
After reducing your startup function to the following, I could not reproduce the results in MATLAB R2022a. function startup(a...

etwa ein Monat vor | 0

Beantwortet
Histogram (with sum of variables on y-axis)
Hello Vlatko, I'm not sure if you want to sum the two vectors and then compute the binned sum or if you want to compute the bi...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can convert line plot to bar plot
It appears you're looking for bar(x) or bar(x.') depending on how you'd like to group the bars.

etwa ein Monat vor | 0

Beantwortet
I want to take a training in matlab
Here are free tutorials to start learning MATLAB or Simulink. Select the "MATLAB Onramp" to get started with MATLAB. https://...

etwa ein Monat vor | 0

Beantwortet
colored isosurface could not be maintained
Why do the isosurface colors change when adding another surface object? By default, the range of colors in the axes' colormap i...

3 Monate vor | 0

| akzeptiert

Beantwortet
Toggle grid on off when user selects in a GUI
Great question. The funcion gca gets the current axes which is the axes most recently in focus. Instead, you want to specify w...

3 Monate vor | 1

Beantwortet
Find the number of non-empty cells in each row of a cell array
Here's a demo that creates a cell array of tables and empty cells determines which cells contain a table counts the number o...

3 Monate vor | 1

| akzeptiert

Beantwortet
Making a heat map from three vectors of different lengths
In heatmap, XData define the number of columns and YData define the number of rows. Your matrix y is 21x10 meaning there will b...

3 Monate vor | 0

| akzeptiert

Beantwortet
Heatmap doesnt show empty rows or columns
By empty I assume you mean that there are NaN values present and I see that you are setting a missing data value color and label...

3 Monate vor | 0

Beantwortet
Plotting Row and Columns
There are important items to address here. 1. Creating new figures if mod(n,10) == 0 %checks whether Remainder after divisio...

3 Monate vor | 1

| akzeptiert

Beantwortet
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...

3 Monate vor | 0

Beantwortet
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...

3 Monate vor | 1

| akzeptiert

Beantwortet
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...

3 Monate vor | 0

| akzeptiert

Beantwortet
how to take pictures from webcam connected from phone on matlab
Use exportgraphics to capture the image within your axes.

3 Monate vor | 0

Beantwortet
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...

3 Monate vor | 0

| akzeptiert

Beantwortet
Would you use Matlab Central in a job search?
I did.

3 Monate vor | 1

Beantwortet
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.

3 Monate vor | 1

| akzeptiert

Beantwortet
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. ...

3 Monate vor | 0

| akzeptiert

Beantwortet
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...

3 Monate vor | 0

Beantwortet
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(:)...

3 Monate vor | 0

Beantwortet
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...

4 Monate vor | 0

Beantwortet
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,...

4 Monate vor | 0

Mehr laden