Community Profile

photo

Kevin Holly

MathWorks

Last seen: Today Active since 2021

.

Spoken Languages:
English

Statistics

All
  • MATLAB Mini Hack Participant
  • 3 Month Streak
  • Knowledgeable Level 3
  • Revival Level 1
  • Treasure Hunt Participant
  • Creator
  • Promoter
  • Introduction to MATLAB Master
  • MATLAB Central Treasure Hunt Finisher
  • Solver
  • First Answer

View badges

Content Feed

View by

Answered
Import data from text file
I used the import data button on the toolstrip to import the text file. Then I generated the function below. DataChan1 = import...

3 days ago | 1

| accepted

Answered
Matlab App Designer Clickable Image only clickable once
I would use strcmp to compare image source just in case there is an error with the character arrays being different sizes (e.g. ...

5 days ago | 0

Answered
Can you code A 3D Building in MATLAB?
This is the approach I would take. %preallocate m = zeros(100,100,100); m(1,21:80,21:80) = ones(60); angle = 0.25:0.25:360...

6 days ago | 0

| accepted

Answered
Trying to index an array and extract its values with a for loop.
Below are two possible ways. If data is in table, t=table; t.column1 = [1 2 3 4 0 3 4 2 3 4 0 3 1]'; t.column2 = [8 7 9 0 ...

6 days ago | 0

Answered
How do you plot a set of 2D images diagonally?
Is this what you are looking for? x = 1:14;%rand(1,14); z = 1:14;%rand(1,14); y = 1:14;%rand(1,14); y1 = 7; imgset = ra...

6 days ago | 0

Answered
Error Using cellfun for a Matrix
a = rand(81,81); n = 3*ones(1,27); a_d = mat2cell(a,n,n); for i = 1:27 for j = 1:27 G_x = @(x) sum((x-a_d{i,j})./(x+a_d...

8 days ago | 1

Answered
Fit ellipse to objects in image
I would suggest using regionprops. Steve Eddins walks through the process on his blog. https://blogs.mathworks.com/steve/2015/0...

10 days ago | 2

| accepted

Answered
Different outputs when using { : }
When you used the braces the way you did, it turned the string array into a character array. I would look at the following: ...

10 days ago | 0

| accepted

Answered
Adding and display in AppDesigner GUI
How do you want the text to be displayed? If you want it to display 'x2 value, 1', you can do the following: function Button_5...

10 days ago | 1

| accepted

Answered
Vectors must be same lenght
AB=200; BC=480; CD=480; DQ=450; AQ=480; FB=100; DE=600; AF=300; ED=600; DC=CD; x=AQ; y=DQ; a2=CD; a3=BC; a4=AB; ...

10 days ago | 0

| accepted

Answered
saving files in .mat in another folder
I am going to assume that you are reading image files and then trying to save them in another folder as mat files. %Select fold...

10 days ago | 0

Answered
How to create a big 3D matrix from different blocks with the same volume?
n1=100; % dimension of main matrix n2=16; % dimension of blocks m=zeros(n1,n1,n1); %Null matrix of dimension 100x100x100 m1=o...

12 days ago | 0

Answered
How to find out standard deviation of a matrix when there is a lot of NaN values?
You can ignore NaN values with the std function by adding 'omitnan' as an input. A = rand(9,9); A(3,4) = NaN; A(7,8) = NaN;...

1 month ago | 2

| accepted

Answered
How to register and average images together from a mat file
Here is some informaiton on image registration: https://www.mathworks.com/discovery/image-registration.html https://www.ma...

2 months ago | 2

Answered
Matlab plot not lining up correctly with x-axis
You need to change the number of ticks along the x axis. %Plotting% Months_x={'Jan'; 'Feb'; 'Mar'; 'Apr'; 'May'; 'Jun'; 'Jul';...

2 months ago | 1

| accepted

Answered
How do I rotate the view of a cylinder created using surf plot?
Here is another method, if you want to rotate the surf plot. figure [x,y,z] = cylinder(2,20); obj = surf(x,y,80*z); xlim([-1...

2 months ago | 0

Answered
Each data point plots as individual points not as one set of many points
obj = VideoReader('VidName.avi') %same name as file you create in step 1 video = read(obj); for i=1:150 %number of frames of t...

2 months ago | 1

| accepted

Answered
Create an array containing numeric and symbolic variables
syms t1 t2 d; DH = {0 0.4 0 t1 %i = 1 0 0.1 -90 t2 %i = 2 0 d 90 0} %i = 3 isnumeric(DH{1,1}) isnumeri...

2 months ago | 0

| accepted

Answered
Matlab code wont run. Matrix dimensions must agree error
I did not come across that issue when I defined omega as omega = (pi*beta/T)*cos((2*t - T)*pi/(2*T)); before running that line. ...

2 months ago | 0

Answered
i want to delete cells that contain 0's
Assuming the values in cell array are numeric: cellarray = {34 , 23, 4, 123, 0 ,423, 4312;34 , 23, 4, 123, 5 ,423, 4312;34 , 0,...

2 months ago | 0

| accepted

Answered
How can I plot scatterplot in the UIAxes of App Designer
App Designer uses uifigure. I found a way to move the scatterplot from the scatterplot figure to the uifigure. handle = uifigur...

2 months ago | 0

Answered
Combine data from 3 tables based on common datetime?
Use innerjoin

2 months ago | 0

Answered
For Loop and if statement
m = [9 6 7 1 7 8 6 2 9 1 2 1 5 7 8 3 8 5 1 2]; a=[]; ...

2 months ago | 0

Answered
How to create a colored, with three equally spaced rows of colors horizontally with a dimension of 6x5x3
If you want the image above to be horizontal: yellow = [1,1,0]; orange = [0.8500,0.3250,0.0980]; pink = [1, 0.5, 0.8]; tci =...

2 months ago | 0

Answered
Can we use DocumentPart in Report Generation?
It looks like it can from the example from the documentation. https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.document...

2 months ago | 0

Answered
how can I delete from a string a couple of lines I have indexed
Are you looking for something like this? str = ["line 1";"line 2";"line 3";"line 4";"line 5"] var = [2 3]; str(var)=[]

2 months ago | 0

Answered
find numbers that exceed the 50
There is probably a better way to do the indexing, but here is my approach. var = [ 40 30 23 90 89 53 23 123 32 50 21 32 4 65 1...

2 months ago | 0

| accepted

Answered
Why my colour image cannot display when using imread and imshow?
Try this: [I,cmap]=imread('pineapple.png'); imshow(I,'colormap',cmap)

2 months ago | 0

| accepted

Answered
Finding Peaks after Event (in a time frame)
% Importing_and_Plotting_EEG_Example close all; clear all; clc; format long; % Importing csv data T=readtable('Try 4.csv'); ...

3 months ago | 1

| accepted

Answered
How do I get the brush tool to ignore points?
figure scatter(rand(20,1),rand(20,1),'g') hold on scatter(rand(20,1),rand(20,1),'b') Right Click and select "Export Brushe...

3 months ago | 0

Load more