已回答
How to generate an prime random number??
Hi Priyanka, To generate a random prime number, you can use the “isprime” function (https://www.mathworks.com/help/matl...

12 months 前 | 0

已回答
How to use myupdatefcn inside an 'if' loop
Hi Kris Adamatzky, I understand that you are trying to represent 100 songs as scatter plot points where each point is label...

12 months 前 | 0

已回答
skewness in random numbers
Hi Tusu, I understand that you want to generate random numbers between 8 and 32, but instead of the numbers being completely ra...

12 months 前 | 0

已回答
It is working, but when I uncomment the section that is comment inted or adding one song, it adds all of them.
Hi Enrico, I understand that you are trying to append one song, instead your code is appending the entire dataset (along with t...

12 months 前 | 0

已回答
zoom scatter dots inside a figure
Hi mat, To make the scatter points appear to zoom proportionally with the figure, you can use ‘SizeData’ property (https://in....

12 months 前 | 0

已回答
3-D radiation pattern
Hi Mike, To generate a 3D radiation pattern in MATLAB, you can use functions like “meshgrid”, “sph2cart”, “surf” etc. You can ...

12 months 前 | 0

已回答
getframe didn't capture my axes properly
Hi Osama Alkurdi, I faced the same issue in MATLAB R2024a, but I notice that the issue is fixed in R2024b. Hope this helps!

1 year 前 | 0

已回答
Scattered 3d data to contourf plot
Hi Tiago, Here are my observations: There is a difference in the syntax of scatter3() and contourf(). In “scatter3(X, Y, Z)”...

1 year 前 | 0

已回答
How to create a date starting from a specific date and time line for x axis
Hi Dushan, I see that you are trying to create a time-based x-axis starting from a specific date and time (like 2/6/2021 7:...

1 year 前 | 0

已回答
how can i calculate the value of Sigmoid Function for image in matlab ?
Hi Maryem, To apply the Sigmoid function to an image: Read the image Convert the image to grayscale Convert the image to do...

1 year 前 | 0

已回答
i need to calculate fitness value and save that in separate .mat file
Hi SARAH, There are a couple of issues with your code: I explicitly checked the structure of “mch” and “residualenergy” by usi...

1 year 前 | 0

已回答
How to add an arrow at the end of plot precisely using annotation
Hi Guilherme, You can achieve this using “quiver3” (https://www.mathworks.com/help/matlab/ref/quiver3.html) for the arrows and ...

1 year 前 | 0

已回答
Setting Default Errorbar properties does not affect plots
Hi Francesco, It looks like the issue is that MATLAB does not apply default properties to “errorbar” objects in the same way it...

1 year 前 | 0

| 已接受

已回答
Animated Discrete Stem Plot
Hi Amritpal, You're on the right track with animating a discrete-time complex exponential function, but there are a few issues...

1 year 前 | 0

已回答
plotting function function handle
Hi Gavin, To plot a function using a function handle in MATLAB, you can use the “fplot” (https://www.mathworks.com/help/matlab...

1 year 前 | 0

已回答
How can I plot categories and sub-categories in a bar graph?
Hi Inés Encabo, You can achieve this using MATLAB's “tiledlayout”(https://www.mathworks.com/help/matlab/ref/tiledlayout.html) ...

1 year 前 | 0

已回答
Add text annotation with variables to matlab plot over multiple lines
Hi Esme, The issue arises because MATLAB interprets “strcat” as a standard character string, which disrupts LaTeX rendering. A...

1 year 前 | 0

已回答
plot export to svg 'x' sign changed to '#'
Hi Blazej Poplawski, I faced this issue as well till MATLAB R2019b, but I see that the export to SVG is fixed in MATLAB R2020a...

1 year 前 | 0