Beantwortet
How to know the equation of a curve fitted to histogram
The output of histfit is a vector of handles, one of which is a line object containing the x/y values for the curve. You could ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Find max and min every n elements in a matrix, then plot with error bar together with mean value
How can i efficiently find the max and min of each group? Hint: use the same accumarray function except replace mean with max o...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to find out the minimum value in a matrix between two columns in a row
Learn indexing. 10 minutes reading that page will save you hours in the future. min(a(1,[3,4]))

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Statistical calculation from the plot function
If you have the variables app.Tempreture_In, etc..., why not use them to compute the statistics? If you only have the figures i...

mehr als 4 Jahre vor | 0

| akzeptiert

Poll


How do you primarily find content on Matlab Central (MLC)?

mehr als 4 Jahre vor | 813 votes | 3 comments

Beantwortet
Is there a way to Identify the calling function within a function?
Study the dbstack function. dbstack returns a structure containing information about the file, function name, and line number ...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to use getrect only for axes1?
Specify the axis handle in the first input rect = getrect(ax) However, getrect is outdated. Consider using roi = drawrectangl...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Why am I getting the "Permission Denied" message when I try to open my diary?
Based on your screenshots, your current directory was somehow changed to the C\Windows\Sys32 folder which is likely denied writi...

mehr als 4 Jahre vor | 0

Beantwortet
how can I change the code to save every figure my code does?
It looks like you wanted to do, AllFigH = allchild(groot); for iFig = 1:numel(AllFigH) fig = AllFigH(iFig); Folder = ('...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Extract position of all draw points
1. Add this to the end after the while-loop to get rid of the initial empty handle pointhandles(1) = []; 2. Extract the posit...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Appdesigner Gui issue code
Demo 1: Show sampling interval This simplified demo tracks the cursor position within the axes and adds a marker (.) to indicat...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to project and fit a 2D path onto a 3D surface?
> I want to project a 2D spiral path on a 3D surface Inputs: (x,y) coordinates of the 2D spiral (X,Y,Z) coordinates of the 3D...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to set specific color in an image as transparent?
Load image img = 'image.png'; I = imread(img); figure() tiledlayout(1,2) ax1 = nexttile(); imshow(I,'Parent',ax1) Isol...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to calculate the volume and sum counts
The variable c (bad variable name) is only defined when this condition is met: if round(count/20)==count/20. Since the error in...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
why do I receive two numbers when I use Find command?
> why do i get two indices for tg? Let's look at your data. Your code: ca = 1014 ; ci = 2050 ; cw...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to find where a circle lie between which range?
Convert the (x,y) coordinates of the 5 holes to polar coordinates using [theta,rho]=cart2pol(x,y) The rho values are the radia...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to check error/accuracy of K-means clustering on new dataset
> i want to check How accurate data belong to the cluster. Part 1. kmeans clustering is not a classifier... ...so the algorith...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
Add lines to a struct
s = struct(); s.(sprintf('P%08.0f',1)) = 'Baetriz'; s.(sprintf('P%08.0f',2)) = 'Adam'; s.(sprintf('P%08.0f',3)) = 'Matlab' ...

mehr als 4 Jahre vor | 0

Beantwortet
date to string conversion
Assuming you want the date formatted as ddmmm ( see additional format options ), aa = datetime('now') % or aa = now() for doub...

mehr als 4 Jahre vor | 1

Beantwortet
How can I modify tooltip delays in my application designed in Application Designer?
Java methods are not supported by uifigures. See a similar thread: https://www.mathworks.com/matlabcentral/answers/396625-how...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
how can I use the function "table" in a loop when the number of input variables changes ?
array2table T = array2table(A); if you want to specify variable names "col#", T = array2table(A), 'VariableNames', compose('...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Please why does this code give an error "Index in position 2 exceeds array bounds. Index must not exceed 6"
According to the error, the variable "strain" only contains 6 columns but you're indexing a 7th column that doesn't exist. Eithe...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to modify scatter3 default 'mouseover' display
Note that this demo assigns axis labels according your desciption of the desired datatip labels (L,a,b) whereas in your image, t...

mehr als 4 Jahre vor | 0

Beantwortet
Acquire annual data from table
Convert your table to a timetable, T = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/836120/RaaheN...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot an array with an hourly time stamp without starting at 00:00:00?
It sounds like you just need to set the datetime format of the x-tick labels and the x-axis limit. Use datetime-values for x...

mehr als 4 Jahre vor | 0

Beantwortet
App designer Key-press callback
Attached is a simple demo app that contains a KeyPressFcn assigned to the uifigure and a button. The KeyPressFcn merely prints t...

mehr als 4 Jahre vor | 2

Beantwortet
How can I see for a function from which version was change functionality!
The subtitle option was added in Matlab R2020b so your colleagues who are using 20b should not have a problem. R2020b Release...

mehr als 4 Jahre vor | 2

Beantwortet
How to use stackedplot such that each graph has multiple lines AND x-axes is unevenly spaced continuous variable?
> I wish to include two lines on the first plot. It's easiest to work with tables or timetables when using stackedplot. If you...

mehr als 4 Jahre vor | 0

Beantwortet
Plot not displaying lines
A line requires at least two points. Your x, x1, y, y1 values are scalars (single points). If you want to plot a marker instea...

mehr als 4 Jahre vor | 0

Beantwortet
How to get a complement of a cell array in matlab?
This solution works if all elements of the 1D cell arrays 1x2 row vectors. V = {[1,2], [3,5], [5,6], [2,4],[3,7], [3,9], [8,9...

mehr als 4 Jahre vor | 0

| akzeptiert

Mehr laden