Réponse apportée
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...

10 mois il y a | 0

Réponse apportée
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...

10 mois il y a | 0

Réponse apportée
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...

10 mois il y a | 0

Réponse apportée
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...

10 mois il y a | 0

Réponse apportée
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....

11 mois il y a | 0

Réponse apportée
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 ...

11 mois il y a | 0

Réponse apportée
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!

11 mois il y a | 0

Réponse apportée
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)”...

11 mois il y a | 0

Réponse apportée
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:...

11 mois il y a | 0

Réponse apportée
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...

11 mois il y a | 0

Réponse apportée
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...

11 mois il y a | 0

Réponse apportée
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 ...

11 mois il y a | 0

Réponse apportée
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...

11 mois il y a | 0

| A accepté

Réponse apportée
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...

11 mois il y a | 0

Réponse apportée
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...

11 mois il y a | 0

Réponse apportée
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) ...

11 mois il y a | 0

Réponse apportée
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...

11 mois il y a | 0

Réponse apportée
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...

11 mois il y a | 0