Respondida
Check for missing argument or incorrect argument data type in call to function 'head' - using Matlab R2020a
The function head is only defined for an input that is a table, a timetable, or a tall array. When trying to execute your code,...

casi 3 años hace | 1

| aceptada

Respondida
Getting imaginary numbers for induction factors; I am getting imaginary number for my induction fact Aa and At but I am not using any sqrt to calculte. Thank you.
The acos function returns complex values if the inputs are outside the interval [-1,1]. Set a breakpoint on the line where you a...

casi 3 años hace | 0

Respondida
Filling one type of holes in a binary image
Based on your description of what you're trying to do, I ask the question: how are the semi-rectangular grains, which you want t...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to remove extrapolated regions of a grid created with scatteredInterpolant?
You could try using an alpha shape to postprocess (mask) Z. Original code dx = 5; %grid step load('datapoints.mat'); F = s...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to create a filling/shading between prediction bounds?
I can't completely run your code (s and Asiiimodel are missing), but I think that the black color in your patch result is from t...

alrededor de 3 años hace | 1

| aceptada

Respondida
FFT function is not functioning.
It seems that you may have tried to install MATLAB on a cloud drive (OneDrive). Or maybe you copied the application files into O...

alrededor de 3 años hace | 0

Respondida
How do I transform this format 202007011030 (2020 07 01 10:30) into a readabel format?
I can imagine several ways to do this. Here is one. lines = readlines("Fehmarn_Wind_date.txt"); readlines was introduced in R2...

alrededor de 3 años hace | 0

Respondida
ROI Trace boundaries result
I think some careful coordinate system tweaks will get you there. In many Image Processing Toolbox functions, pixels are treated...

alrededor de 3 años hace | 2

Respondida
How is the 2D filter function used in this code?
For each element in A, filter2 essentially "slides" the filter F so that its center lines up with the element in A, and then it ...

alrededor de 3 años hace | 1

| aceptada

Respondida
Changing color of pixels around certain pixels
Suppose mask is a logical matrix that indicates which pixels satisfy your condition. (That seems to be the purpose of idx in you...

alrededor de 3 años hace | 2

| aceptada

Respondida
Colorbar range inconsistent in high aspect ratio images
Call axis image before you create the colorbar and set its tick labels. When you set tick labels manually, a mode is set so that...

alrededor de 3 años hace | 0

| aceptada

Respondida
Can a MATLAB function edit the input?
You'll need your class to subclass handle. See the documentation page "Implementing Linked Lists with Classes" for details.

más de 3 años hace | 0

| aceptada

Respondida
Matlab working very slow on my m1 MacBook Pro
See this answer and follow it for updates related to this problem.

más de 3 años hace | 2

Respondida
Shouldn't bwconvhull() be idempotent?
Hi Matt, At a general level - and speaking from too much personal experience - expectations about geometrical operations such a...

más de 3 años hace | 2

| aceptada

Respondida
Issue in plotting binary image boundaries with real axis values
The function bwboundaries returns boundary values in pixel coordinates. You'll need to scale those to world coordinates yourself...

más de 3 años hace | 0

| aceptada

Respondida
How to change boundary width in Active Contour Method?
Call visboundaries with an output argument. That output argument will be an hggroup object containing two lines. You can then ma...

más de 3 años hace | 0

| aceptada

Respondida
Having graycomatrix rescaling problem
Here is the doc for the NumLevels parameter: Number of gray levels, specified as an integer. For example, if NumLevels is 8, gr...

casi 4 años hace | 0

| aceptada

Respondida
How to find the center position under the saturation spot signal
Try converting the image to binary using imbinarize and then using regionprops to compute the centroid. rgb = imread('image.bmp...

casi 4 años hace | 0

| aceptada

Respondida
How to bold x axis labels
Try setting the TickLabelsInterpreter property to 'tex', like this: plot(1:10) ax = gca; ax.XAxis.TickLabelInterpreter = 'tex...

casi 4 años hace | 0

| aceptada

Respondida
three difference vectors and plots
I have copy-pasted your code below, exactly as entered in your question. It runs and produces the plot with no error. I suggest ...

casi 4 años hace | 2

Respondida
Problem with datetime and daily values
Use a timetable and the retime function. >> T = readtable("data.xlsx"); >> head(T) ans = 8×5 table Date ...

casi 4 años hace | 0

| aceptada

Respondida
What is the best way to count the occurrences of two table columns together?
In my previous answer, I forgot that grpstats is in the Statistics and Machine Learning Toolbox. Here is an answer using groupsu...

casi 4 años hace | 1

Respondida
What is the best way to count the occurrences of two table columns together?
I think grpstats will do what you want: >> grpstats(T,["A" "B"]) ans = 4×3 table A B Grou...

casi 4 años hace | 0

Respondida
Find peaks not working on my data set
I suspect the issue is with the x-coordinates that you are using to plot the peaks. You are plotting the peaks against the indic...

casi 4 años hace | 1

| aceptada

Respondida
Assign values in a matrix
One idea is to use a timetable and the retime function. Suppose I have the following matrix for a 4-minute charge and a 3-minute...

casi 4 años hace | 0

| aceptada

Respondida
Code is showing Undefined function 'pixelHull' for input arguments of type 'double'.
I wrote a function called pixelHull as part of my 16-Mar-2018 blog post. You can find the function listing near the bottom of th...

casi 4 años hace | 1

| aceptada

Respondida
Binarize image for specific colour
Use the Color Thresholder app to generate the code needed to do this segmentation. See my 14-Oct-2019 and 25-Apr-2014 blog posts...

alrededor de 4 años hace | 0

Respondida
Plotting signal of a region of interest
A possible explanation is that you have a variable called "size" or "mean" in your workspace. For example, if you have a variabl...

alrededor de 4 años hace | 0

Respondida
How to apply a threshold value to the cell array
I think writing a for-loop would be most straightforward way to go. Something like this: for k = 1:numel(C) C_k = C{k}; ...

alrededor de 4 años hace | 1

| aceptada

Respondida
How to change the font of a pie chart?
The text labels created by the pie function are not controlled by the font properties of the containing axes object. They are in...

alrededor de 4 años hace | 2

| aceptada

Cargar más