Answered
How to convert number format in yaxis?
How about using: https://www.mathworks.com/matlabcentral/fileexchange/26161-roman2num-and-num2roman-modern-roman-numerals I'm...

4 years ago | 0

| accepted

Answered
How to plot graphs with looping through string variables?
I agree with @Stephen, your life will be much easier if you use readtable. Are you saying you want to use specification and f...

4 years ago | 0

| accepted

Answered
Adding two shared colorbars to figures of tiledlayout
You can only have on colorbar per axes: in your code you've set Points = gca and Dem = gca, but they're the same gca. You can...

4 years ago | 1

| accepted

Answered
How to call matlab from python?
I think you mean you want to call a MATLAB function from Python? This page has specific instructions: https://www.mathworks.co...

4 years ago | 0

| accepted

Answered
How do I increase the figure size without streching my plot?
A few different solutions (demos below): If you don't want the changing figure position to change the aspect ratio, set the asp...

4 years ago | 0

| accepted

Answered
Errors for groupsummary() using function handles
I think the feature of accepting multiple arguments is trying to solve this exact problem, to work around this in 18b you can pa...

4 years ago | 0

Answered
How to save multiple images which use alphadata to a single file?
The lower level Tiff has support for alpha, it's a little harder to use than imwrite but there's an example on the linked page t...

4 years ago | 0

Answered
How do I assign a name to each line? with wmline
You can use the 'Description' property: wmline([-10 10],[1 1],'Description','Dave') wmline([-10 10],[5 5],'Description','Dan...

4 years ago | 0

| accepted

Answered
Setting manually limits in geoplot
This is a somewhat crazy approach, and won't work for very really extreme figure sizes. geoaxes is trying to fill the window, an...

4 years ago | 1

| accepted

Answered
How to use "hold on" for plotmatrix?
plotmatrix, because it uses multiple axes, doesn't work well at all with hold on...as you discovered. I can think of three solu...

4 years ago | 0

| accepted

Answered
How to sum a portion of a row in a table and get a single value
To have sum apply to all elements of the array rather than across a particular dimension, you can use the 'all' flag. (Alternate...

4 years ago | 0

| accepted

Answered
Annular polar plot with an offset origin
As @Adam Danz describes above, there's no built in way to do either the annulus part or the wedge part. But, as with many thin...

4 years ago | 2

| accepted

Answered
i want to creat a lookup table but i have a problem...
I'm not totally clear, but I think you're saying you have: num=(1:500)'; numprime=rand(500,1); And you want to turn this in...

4 years ago | 0

| accepted

Answered
How to change the C values that matches a 3 coordinates position condition?
Similar to https://www.mathworks.com/matlabcentral/answers/897257-set-points-that-matches-with-a-vector-as-nan we can solve this...

4 years ago | 1

Answered
Why do I have an Error using readtable?
I don't see where you sepcified the last row you wanted to read, you specified to ignore the first 12. Range is good for this ki...

4 years ago | 0

| accepted

Answered
which way should I choose for app development ?
The choice of GUIDE vs App Designer is easy, you should definitely use App Designer. This page compares them in detail, but perh...

4 years ago | 0

| accepted

Answered
How to create a pivot table from this table (revised)
Maybe there's a simpler path, but how about using groupsummary followed by unstack? % Generate your table cust = {'Customer 1...

4 years ago | 0

| accepted

Answered
How to repeat the same codes/work on different datasets in different subfolders
Here's the pattern I often use for this kind of problem. What you do inside the subfolders sort of depends on what your analysis...

4 years ago | 0

Answered
How to get heatmap values in appdesigner?
Is this the sort of thing you're looking for? h=imagesc(rand(5,7)); h.ButtonDownFcn=@(~,hit)disp(round(hit.IntersectionPoint...

4 years ago | 0

| accepted

Answered
Trouble with for-loop and fft
On line 33 of 'U296' you have the line xdft=fft(signal.x_0_003{k},n)/L; inside the fft you see: signal.x_0_003{k} but signal...

4 years ago | 0

| accepted

Answered
Need help for Renaming Matlab Image png
I often find myself doing this sort of thing with the system command, but it's probably better to do it with movefile. Suppose ...

4 years ago | 0

| accepted

Answered
Add legend to plot colored by colormap function
When you specify CData (the color input) for scatter, MATLAB uses colormapping to plot the data, and a colorbar to describe the ...

4 years ago | 0

| accepted

Answered
Set points that matches with a vector as NaN
In this particular case, because they all have the same y value, you can do this quite easily with interp: scatter3(cy(:,1),c...

4 years ago | 0

| accepted

Answered
How can I add data to an existing double at specific points?
The easy to think about solution might feel a little messy: % insert the numbers 13 and 18 between a(2)/a(3) and a(4)/a(5) a=1...

4 years ago | 0

| accepted

Answered
Removing complex numbers from a set of data
If you want to make a surf of the real component of z: surf(x,y,real(z)) If you want to make a surf of the complex magnitude o...

4 years ago | 0

| accepted

Answered
nondegenerate number in randi(25,5,5)
I think you mean you want the numbers 1:25 randomly arranged? You can use randsample to select random numbers without replaceme...

4 years ago | 0

Answered
question about generate a toneburst ( sound) in every ear
The sound function accepts a two column matrix for y, the first column corresponds to the left channel, and the second column co...

4 years ago | 1

Answered
I am creating a user interface and want to output a vector using the push button function
Your line of code theta = app.ThetaSlider; Says that theta should be the slider object. MATLAB is complaining because it does...

4 years ago | 0

| accepted

Answered
How do you create a biphasic rectangular signal?
If you have access to signal processing toolbox you can do this with pulstrain I'm sure there's a cleaner/clearer way to use ...

4 years ago | 1

| accepted

Answered
How to a make an array of set length that spans a set of values.
There is a much easier way, which is to use the function linspace: x = linspace(-pi/2, pi/2, 65)

4 years ago | 0

| accepted

Load more