Respondida
min(A,[],'all') returning 0 in script but number in command window ...
spect_pc = zeros(size(fid)); . . . high_y = max(real(spect_pc),[],'all')) high_y is 0 because all values of spect_pc are 0s. ...

más de 5 años hace | 0

| aceptada

Respondida
plot in UIAxes from a matlab function
You have to specify the axis handle as the parent of your plotting function. See example.

más de 5 años hace | 0

| aceptada

Respondida
Can variable renaming tooltip be disabled?
I don't know how to disable just the message while maintaining the ability to rename all using shift+enter. You could create a ...

más de 5 años hace | 0

| aceptada

Respondida
Finding distance from a projectile.
Much of this is basic Matlab syntax that should be understood in order to do almost anything in Matlab. Take some time to go th...

más de 5 años hace | 0

Respondida
What is the best way to find and replace data with mixed string and numbers to numbers only?
After reading the data into matlab you can apply this method to do the conversion. See inline comments for details. % input a...

más de 5 años hace | 0

Respondida
Parallelplot hiding y values on graph
I agree with Star Strider's advice to scale the data. That will still result in y-ticks for each YRuler. Here are two alterna...

más de 5 años hace | 0

| aceptada

Respondida
Dividing the point cloud in 10x10 ways
Load built-in pointcloud data and look at the pointcloud object pc load('xyzPoints'); pc = pointCloud(xyzPoints) X/Y/ZLimits ...

más de 5 años hace | 1

Respondida
Writing data from GUI handles to text file
You're opening the file using file_ID = fopen(fn,'w'); see the documentation to understand what the 'w'permissions option ...

más de 5 años hace | 0

| aceptada

Respondida
how can I write code to reach my goal as figure below?
> in fact I was trying a loop to give the value for ri r is an existing matrix. i and k are just indices. So the value of r...

más de 5 años hace | 0

Respondida
Generating Random Points within Box Around Figure
xl yl and zl are 1x2 vectors defining the range of x y and z coordinates of the 3D object. n is the number of random values to ...

más de 5 años hace | 0

Respondida
How to contact File Exhange Admin to restore deleted submission?
Scroll to the bottom of the About File Exchange page to the Questions and Feedback section. There are links to a feedback form ...

más de 5 años hace | 0

| aceptada

Respondida
Dynamic text like current time in prompt
Here's a custom dialog box that requests input from the user and displays waiting time in seconds in the upper left corner. Tim...

más de 5 años hace | 0

Respondida
How do I use same variables in different scripts?
Review Scripts vs Function and Base and Function Workspaces from the documentation. If you run script A and then script B in t...

más de 5 años hace | 0

| aceptada

Enviada


createStarVertices
Creates vertices for stars with customizable number of rays, position, size, and orientation.

más de 5 años hace | 1 descarga |

5.0 / 5
Thumbnail

Enviada


wrapToInterval()
Wraps numeric values to a specified interval.

más de 5 años hace | 2 descargas |

0.0 / 5
Thumbnail

Respondida
App designer - issue with app freezing after performing the first task
>At this point, a figure called "Figure 2" pops up That's because you're not using axis handles to specify the parent in these ...

más de 5 años hace | 1

| aceptada

Respondida
How to combine geoaxes and contourf plot?
Option 1: use map axes If you can use map axes instead of geoaxes then you can use contourfm. This was the solution for a simil...

más de 5 años hace | 4

| aceptada

Respondida
Plot of a fitted normal distribution
x = [0.011 0.013 0.015 0.017 0.02 0.023 0.026 0.03 0.034 0.039 0.044 0.051 0.058 0.067 0.076 0.087 0.1 0.115, ... 0.131 0....

más de 5 años hace | 0

| aceptada

Respondida
How can I draw a kurdistan flag in matlab?
I agree with John that this is quite a big request and since there are lots of GIF images already available it makes the task a ...

más de 5 años hace | 1

| aceptada

Respondida
Adding time and date column to text file
Read in the file Create vector of datetime values (see below) Create a time table with the datetime vector and data from the f...

más de 5 años hace | 2

Respondida
Inconsistent behaviour in fprintf output (scripts and LiveScripts)?
I agree that the behavior in LiveEditor is inconsistent. This version is better though still displays the final text on a separ...

más de 5 años hace | 0

| aceptada

Respondida
Multiple y axes with multiple plots on single x axis
Take a look at these 3 lines below. figure grid on ax1 = axes; Line 1 creates a new figure. grid on not only turns on ...

más de 5 años hace | 0

| aceptada

Respondida
dynamic capsule list color
I'm not familiar with dynamicCapsuleList objects at all but played around with it a bit. The object colors are defined by patch ...

más de 5 años hace | 1

| aceptada

Respondida
How can I plot a pollution rose?
It would be helpful to have a URL to the R Package so we wouldn't have to guess how the plot was produced. It looks like polar...

más de 5 años hace | 0

Respondida
Summing two binary vectors
y = sumbin(a,b) adds two binary values a and b represented by boolean row vectors (1/0, true/false) and returns the results y as...

más de 5 años hace | 0

Discussion


New in R2021a: Improvements to tiled chart layout
|<https://www.mathworks.com/help/matlab/ref/tiledlayout.html tiledlayout>|, introduced in MATLAB R2019b, offers a flexible way t...

más de 5 años hace | 8

Respondida
Reshape matrix by taking two consecutive rows every two rows
x must be an n*m matrix where n is divisible of 4. M is the reformatted matrix with size k*j where k=n/2 and j=m*2. x = [1 1 1...

más de 5 años hace | 2

| aceptada

Respondida
Perserving a legend when running a script manually multiple times
It's better to use the DisplayName property of graphics objects to defiine the legend strings. Here's a demo Original creatio...

más de 5 años hace | 1

Respondida
How can you check precision of input variable with trailing zeros?
To include trailing 0s, represent the number as a string / char-vector. This function converts numeric inputs to strings and th...

más de 5 años hace | 0

| aceptada

Respondida
Plot points on saved figures in tiled layouts
>How can I force my second scatter plot to use the same axis Specify the axis handle in the scatter function, scatter(ax2, _...

más de 5 años hace | 0

| aceptada

Cargar más