Community Profile

# Kevin Holly

### MathWorks

Last seen: 3 jours il y a Actif depuis 2021

.

Programming Languages:
MATLAB
Spoken Languages:
English
Professional Interests:

All

#### Content Feed

Afficher par

A répondu
why do i get this error as no enough input arguments
I just ran the code without getting an error. x = 10*rand(4,2) [J,distinct_d] = jd(x,1) function [J,distinct_d]=jd(X,p) ...

12 jours il y a | 0

A répondu
how to create zero column matric and row in beginning of the matrix
m = rand(6) new = [zeros(8,2) [zeros(2,6);m]]

12 jours il y a | 1

A répondu
replace nan in a matrix with specific values
Can you give clarity to what you want? To me, it sounds like you want something like this: f = [1 2 3 2; 4 5 6 1; 7 8 9 2]; f(...

12 jours il y a | 0

A répondu
Calculating mean and variance , iris dataset
Is there a reason why you aren't using the mean and var function? load fisheriris a=meas(1:50,1:end); means = mean(a) totalv...

21 jours il y a | 0

| A accepté

A répondu
Could anyone help me out in finding frequency of data using excel file and later finding the row having maximum frequency?
t = readtable('frequency.xlsx') t.Sum = sum(table2array(t(:,2:end)),2) [maxvalue, Index] = max(t.Sum) t(Index,[1 end])

22 jours il y a | 0

| A accepté

A répondu
Finding sum of intensity in each frame of tif stack image
[filename, folder] = uigetfile('*.tif*'); Image_info = imfinfo(fullfile(folder,filename)); num_images = numel(Image_info);%...

22 jours il y a | 1

| A accepté

A répondu
How to write a for loop to add to a label
t = array2table(rand(3,3)); t.Properties.VariableNames = {'arm','leg','foot'} for ii = 1:length(t.Properties.VariableNames) ...

22 jours il y a | 0

A répondu
Matlab app designer header icon/favicon problem
You can change it in App Designer by highlighting the uifigure (this case called app.UIFigure) under the component browser. Then...

22 jours il y a | 1

| A accepté

A répondu
How to include labels to a plot?
force = 30; displacement = [10 20 30 40]; cases = ["This is case 1" "This is case 2" "This is case 3" "This is case 4"]; p...

22 jours il y a | 1

| A accepté

A répondu
Which units does viscircle use
I believe it is based on the coordinates of your axes. If you have an image, it would be pixels.

23 jours il y a | 0

| A accepté

A répondu
plot with for loop
Here is how to do a for loop: main_folder = pwd;%uigetdir; subfolder = 'foldername'; % Making up values so I can show previ...

23 jours il y a | 1

| A accepté

A répondu
Zoom in on a logarithmic axes
You can add Listeners as shown below. %% Parameters n_timepnts = 500 ; % Number of time points n_freqs...

23 jours il y a | 0

| A accepté

A répondu
How to change image size from 224 x 224 x 1 to 224 x 224 x 3
Img = rand(224,224,1); imshow(Img) new(:,:,1) = Img; new(:,:,2) = Img; new(:,:,3) = Img; imshow(new) size(Img) size(new)

23 jours il y a | 0

| A accepté

A répondu
Is it possible to change the type of a component in App Designer?
You could copy&paste the callback function of the edit field to that of the new spinner. You could rename the new spinner within...

24 jours il y a | 0

| A accepté

A répondu
How to add constant values above and below of each columns of a matrix?
VP = rand(100,106); extra50 = rand(50,106); NewVP = [extra50;VP;extra50]; size(VP) size(NewVP)

24 jours il y a | 0

| A accepté

A répondu
Change app designer default launch image
When you compile the app, you can select a custom splash screen. See more info here.

24 jours il y a | 0

| A accepté

A répondu
Can we add a vertical slider to trace points in a linked axis plot?
You could use stackedplot.

24 jours il y a | 1

| A accepté

A répondu
How do I plot lines/points on top of a heatmap?
1. The left and bottom variables in this code represents the coordinates of the bottom left portion of the heatmap graphic. To a...

24 jours il y a | 1

A répondu
How to import a .xlsx file specified as filename and save it a .mat
You can use uigetfile function. If you want to load multifiles, you can use the input 'MultiSelect' and set it to 'on'. You can ...

24 jours il y a | 0

A répondu
Calculating a new 3D point to align ocular implants in patient after orbital resection using facial landmarks
Here is a start. I found the euclidean distance between the new point and the other four points. I'm not sure what ratio constr...

25 jours il y a | 0

A répondu
How to show a polar plot (Azimuth Pattern - Antenna) in MATLAB App Designer?
You can create a Panel and place the entire polaraxes in there with the following: h = gca; h.Parent =...

25 jours il y a | 0

| A accepté

A répondu
How to specify a parent UIplot for the plots that the bayesopt() funtion provides
I can think of a way of placing data into the app's UI once the bayeopt function has run. You could then immediately close of th...

27 jours il y a | 0

| A accepté

A répondu
how can i plot stft in app designer
Below is a workaround to get the stft plot into your UIAxes. Please see app attached. freq= 30; [y,Fs]...

28 jours il y a | 0

A répondu
Export part of Matlab app as Image
You can try Img = getframe(app.UIFigure) Img = Img.cdata imwrite(Img,'filename.png') or Img = getframe(app.UIAxes) Img = I...

28 jours il y a | 1

| A accepté

A répondu
UIAxes Data Tip interaction
You could change line 450 in datacursormode from setptr(gcf,'datacursor') to setptr(gcf,'circle') or just comment out the l...

28 jours il y a | 0

| A accepté

A répondu
Maximum value of matrix
% Generate random matrix N = 34; M = 23; A = rand(N,M); % Sort from highest to lowest values = sort(abs(A(:)), 'desce...

environ un mois il y a | 0

| A accepté

A répondu
for some reasons this code doesnt want to work, what i am doing wrong here please help
What issues are you having with the code? The function doesn't produce any errors for me. Are the answers unexpected? [savin...

environ un mois il y a | 1

| A accepté

A répondu
DataTip is shown far from the selected data sample. How can I fix it ?
I ran the provided app in R2021b and had the same issue. I ran the provided app in R2022b and it was resolved. I would s...

environ un mois il y a | 0

A répondu
How can I plot the antenna array pattern/ the 3D pattern plot in MATLAB App Developer without plotting the figures in a new window?
You can add the following as a workaround (See app attached for an example): h = gca; app.UIAxes.XLabe...

environ un mois il y a | 1

| A accepté

A répondu
Area integration with the point where the mouse selected
You could also use a slider and some buttons in an app to select the area of interest. See App attached.

environ un mois il y a | 0