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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

Answered
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!

9 månader ago | 0

Answered
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)”...

9 månader ago | 0

Answered
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:...

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

| accepted

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

9 månader ago | 0

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

9 månader ago | 0

Answered
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) ...

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0