已回答
How to do math using datetime objects including years
date_obs = '22:179:18:42:44.610'; j2000date = '2000:001:12:00:00.000'; formatOut = 'uu:DDD:HH:mm:ss.SSS'; % ...

3 years 前 | 0

| 已接受

已回答
I want to use the two buttons and have the text field change once a folder is selected. Then have the figures and the jpg's save to those respective folders.
Add property variables properties JPEGSaveLocation MATLABFigureSaveLocation end add Callback to "JPEG Save Location...

3 years 前 | 0

| 已接受

已回答
I want to put multiple plots on a graph but be able to turn on and off the visibility for a few plots
Create a property variable properties p end Define that property value (do so in startup function or in callback functio...

3 years 前 | 0

已回答
Using mouse button to get lat long coordinates
the inputm function does not work with geoaxes. Try using ginput instead. [lat, long] = ginput(1);

3 years 前 | 1

| 已接受

已回答
How to use a edit box on a GUI
Add a callback to the ninth_button that reads the value in the 'eighth_button' edit field and places it as an input to the walk ...

3 years 前 | 0

| 已接受

已回答
Defining the Parent location of a UIAxes plot
remove ax = gca; %This creates a new axis when there isn't an axis in a figure window. Edit: This line isn't needed in for l...

3 years 前 | 0

| 已接受

已回答
Empty plot returning when I try to graph
%sigmayy along theta = 0 degrees for ii = 1:10; for jj = 1:10; x = ii/1000; y = (jj-500)/1000; xtip = x - ...

3 years 前 | 0

已回答
How do you apply an image threshold and track a centroid in a video?
You can use VideoReader. Here is an Example reading a video file. Edit: As for calculating the velocity, you can make your Ce...

3 years 前 | 0

已回答
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) ...

3 years 前 | 0

已回答
how to create zero column matric and row in beginning of the matrix
m = rand(6) new = [zeros(8,2) [zeros(2,6);m]]

3 years 前 | 1

| 已接受

已回答
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(...

3 years 前 | 0

已回答
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...

3 years 前 | 0

| 已接受

已回答
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])

3 years 前 | 0

| 已接受

已回答
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);%...

3 years 前 | 1

| 已接受

已回答
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) ...

3 years 前 | 0

已回答
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...

3 years 前 | 1

| 已接受

已回答
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...

3 years 前 | 1

| 已接受

已回答
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.

3 years 前 | 0

| 已接受

已回答
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...

3 years 前 | 1

| 已接受

已回答
Zoom in on a logarithmic axes
You can add Listeners as shown below. %% Parameters n_timepnts = 500 ; % Number of time points n_freqs...

3 years 前 | 0

| 已接受

已回答
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)

3 years 前 | 0

| 已接受

已回答
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...

3 years 前 | 0

| 已接受

已回答
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)

3 years 前 | 0

| 已接受

已回答
Change app designer default launch image
When you compile the app, you can select a custom splash screen. See more info here.

3 years 前 | 0

| 已接受

已回答
Can we add a vertical slider to trace points in a linked axis plot?
You could use stackedplot.

3 years 前 | 1

| 已接受

已回答
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...

3 years 前 | 1

已回答
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 ...

3 years 前 | 0

已回答
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...

3 years 前 | 0

已回答
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 =...

3 years 前 | 0

| 已接受

已回答
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...

3 years 前 | 0

| 已接受

加载更多