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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

| akzeptiert

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 1

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0