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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 1

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

| accepted

Submitted


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

5 years ago | 1 download |

5.0 / 5
Thumbnail

Submitted


wrapToInterval()
Wraps numeric values to a specified interval.

5 years ago | 2 downloads |

0.0 / 5
Thumbnail

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

5 years ago | 1

| accepted

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

5 years ago | 4

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 2

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 0

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

5 years ago | 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...

5 years ago | 8

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

5 years ago | 2

| accepted

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

5 years ago | 1

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

Load more