Community Profile # Kevin Holly

### MathWorks

Last seen: Today Active since 2021

.

Spoken Languages:
English

#### Statistics

All
• • • • • • • • • #### Content Feed

View by

How to I make data evenly spaced when displaying on a plot?
Have you tried using strips?

3 dagar ago | 0

How to draw a linear regression plot?
You can use fitlm.

3 dagar ago | 0

Merging Tables from 3 other tables
You can use join S12 = join(S1,S2); Sall= join(S12,S3) You can also use Join Tables in the live editor. If you don't want ...

4 dagar ago | 0

How to know the value of my point on the colorbar?
x = 0.1:0.01:0.19; y = 0.1:0.01:0.19; z = 0.1:0.01:0.19; [X, Y, Z] = meshgrid(x, y, z); f = X.*exp(X.^2 + Y.^2 + Z.^2); f...

4 dagar ago | 0

| accepted

How to plot four dimensional data?

4 dagar ago | 0

| accepted

Borghi Diagram in MATLAB
This is how I would do it. First plot the lines and change the scales to log. %Plot lines plot([10 1 .1 10^4],[.1 1 10 10^2....

4 dagar ago | 1

| accepted

Comparing ones in a table
Here is one way of doing it. t = table; t.column1 = randi([0 1],[7 1]); t.column2 = randi([0 1],[7 1]); t.column3 = [0 1 1 ...

4 dagar ago | 0

How to store function values generated by a for loop?
I added outputs to your functions called z. clc;clear x = [-2,-1,0,1,2,3]; y = [1,4,11,16,13,-4]; d0 = difdiv(x,y); d = d0(...

4 dagar ago | 0

| accepted

Whenever I try to use my function f(x,y) I get an error message that says that I need to define f.
I do not have the error when I run it. f = @(x,y) x+y; f(6,7) Are you defining f as a variable afterwards as such? f = @(x,y...

4 dagar ago | 0

Please explain for me this code , and what does each function do in detail ?

4 dagar ago | 1

filling matrix in matlab code
matrice = zeros(10); for i=1:10 matrice(1,i)=i; end matrice

5 dagar ago | 0

How can I correct the wrong size of a variable (matrix instead of a vector)?
This line here creates a matrix. When one numerical value (n) is entered into the zeros function, it creates a n by n matrix. m...

5 dagar ago | 1

| accepted

How to show that calculation is going in MATLAB App
You can create a status text in the App Designer by dragging "Label" onto your app in Design View. You can edit the font, alignm...

5 dagar ago | 0

| accepted

Flip a matrix from 31 x 1000 to 1000 x 31 and retain same order of elements
You can tranpose the matrix with a ' matrix = rand(3,10) matrix_transposed = matrix'

5 dagar ago | 1

| accepted

How do I change color diffusion in jet colormap?
%% Example data x = (2:-0.1:0); data = sin(x); %% Shift the values towards the center, so you get a circle instead of an an...

6 dagar ago | 1

| accepted

I want to change the name of elements in a variable
You can save a string array with those names as such: Countries = ["UK";"Canada"; "France";"Italy";"Japan";"United States"]...

7 dagar ago | 0

| accepted

Select particular 3D volumes of a 4D matrix
matrix_4D = matrix_4D(:,:,:,[1:11 14:29]);

10 dagar ago | 1

How do I find means of samples and then mean of the means?
Although it sounds like a homework question, I'll answer it since it is basic. random = randi(1000000,1000,25); mean_row = mea...

12 dagar ago | 0

How can I create a data table and export it as an excel file?

13 dagar ago | 1

| accepted

How to add a line to a freqz plot?
yline(0)

13 dagar ago | 0

Adding labels to fsurf contour lines
You can add text by entering the following: text(0,30,160,'Text Label','Fontsize',12) where 0, 30, and 160 are the x, y, and...

15 dagar ago | 0

How to assign xlabel,ylabel from my selected popup menu list?
If App Designer: value = app.DropDown.Value; value2 = app.DropDown2.Value; value2 = app.DropDown2.Value; if value == 'Opti...

15 dagar ago | 0

How to find the intersection of a fitting line with a logarithmic y-axis?
A= [10 40 60 80]; B = [5 6 7 8]; scatter(B,A,20,'filled') set(gca,'YScale','log') % Polyfit p = polyfit(B,A,2);% 2nd or...

15 dagar ago | 0

how to find peaks for 100%,75%,50%,25% of the max peak
I'm not entirely sure what peaks you are trying to identify. Below are techniques you can use. You can add labels to your pea...

15 dagar ago | 0

| accepted

How do I obtain a 2D or 3D representation of a georeferenced raster?
You can use the surf function. Below are links to some examples: https://www.mathworks.com/matlabcentral/answers/598591-how-to-...

16 dagar ago | 1

| accepted

How to plot entire row of numerical matrix from corresponding logical array?
Drill = [ 0.2324 0.0010 -0.2805 0.2324 0.0005 -0.2805 0.2322 0 -0.2800 0.2324 0 -0....

16 dagar ago | 0

| accepted

How to get the smallest value in submatrices
cellfun(@min,B,'UniformOutput',false) %or cellfun(@min,cellfun(@min,B,'UniformOutput',false),'UniformOutput',f...

16 dagar ago | 0

How to plot coordinate data to appear solid with lighting effect?
There may be a better way doing it. Here is my attempt: x1 = 0; x2 = 0; y1 = -.8; % value based on angle of 25 degrees y2 = ...

16 dagar ago | 0

How do I display the workspace variable file name via MATLAB script?
"And yes, each .mat file in the loop would save the matrix under the variable name "IntensityImagedataCh1". Would that impact ...

17 dagar ago | 1

| accepted