Answered
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...

ungefär en månad ago | 1

Answered
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 ...

ungefär en månad ago | 0

Answered
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...

ungefär en månad ago | 0

Answered
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 =...

ungefär en månad ago | 0

| accepted

Answered
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...

ungefär en månad ago | 0

| accepted

Answered
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]...

ungefär en månad ago | 0

Answered
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...

ungefär en månad ago | 1

| accepted

Answered
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...

ungefär en månad ago | 0

| accepted

Answered
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...

ungefär en månad ago | 0

| accepted

Answered
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...

ungefär en månad ago | 1

| accepted

Answered
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...

ungefär en månad ago | 0

Answered
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...

ungefär en månad ago | 1

| accepted

Answered
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.

ungefär en månad ago | 0

Answered
How i can filter browse button by some string
You can add the name before the * as shown below. Somename = 'example_PIKO_'; somePath=uigetdir(pwd,'Select a folder'); files...

ungefär 2 månader ago | 0

Answered
Self contained Matlab Program
When you package your app, you can select "Runtime included in package". You can also add other files to the package by click...

ungefär 2 månader ago | 0

Answered
How to plot with bar3 plot in MATLAB?
B = [86, 82, 80]; B2 = [91, 88, 85]; B3 = [98, 95, 89]; z = [B; B2; B3]'; environment = ["30*30", "50*50", "100*100"]; b = ...

ungefär 2 månader ago | 0

Answered
Grab a file without writting full name
Can you try this? folder = [basePath{1},filesep,'binaries']; % I'm assuming this is the folder location firmwareFiles = dir(fu...

ungefär 2 månader ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values. i am getting this error for averaging filter
i=imread('peppers.png'); [m n]=size(i) mask=ones(3,3)/9; in=zeros([m n]); for k=1:1:m-1 for l=1:1:n-1 t=i(k-1...

ungefär 2 månader ago | 0

| accepted

Answered
change color when i plot more surface fit
fig10=figure(10); xData = rand(30,1); yData = rand(30,1); zData = rand(30,1); ft = fittype( 'poly44' ); opts = fitoptio...

ungefär 2 månader ago | 0

Answered
hello i want to make a sinusoidal graph please help
t=-pi/2:(pi/2)/1000:pi/2; X = 6*cos(2*pi*20*t) + 2*sin(2*pi*10*t); plot(t,X) title('Sinusoidal Graph') or figure t=linspac...

ungefär 2 månader ago | 1

| accepted

Answered
Add two figures in the one single plot
tiledlayout(2,1) nexttile scatter(rand(10,1),rand(10,1),'sr') nexttile scatter(rand(10,1),rand(10,1),'gh') You can also u...

ungefär 2 månader ago | 0

Answered
Unrecognized property 'f' for class 'Graduation_project_awni_and_mazen' idont what to do with this error help please.
Have you tried to change properties (Access = private) to properties (Access = public) to see if the property variable f ca...

ungefär 2 månader ago | 0

Answered
writetable for a double entry table
writetable(B,'B.csv','WriteRowNames',true);

ungefär 2 månader ago | 0

| accepted

Answered
Within a GUI created with App Designer can I call a function associated with one button inside the code for a different button?
When you create a new function, you can just call that function. function differentButton(app, event) EXIT(app) end

ungefär 2 månader ago | 0

| accepted

Answered
creating a multiple dimensional timetable
Yes, you can merge them into one timetable using innerjoin. The sensors can even have different sampling rates or have duplicate...

ungefär 2 månader ago | 0

Answered
How can I create multiple arrays from 2 separate arrays?
Is this what you were trying to do? A = [1,3,5,7]; B = [2,4,6,8]; for i = 1:length(A) array(i,:) = A(i):0.1:B(i); end ...

ungefär 2 månader ago | 1

| accepted

Answered
Imported data becomes NaN
I would suggest using the Import Data button found on the toolstrip. After selecting the Excel spreadsheet to open, it should...

ungefär 2 månader ago | 0

Answered
App Designer how to set value for edit field (numeric)
If the SecondWindow is an app that was called from the mainapp. You will need to call the property value from the mainapp. The c...

ungefär 2 månader ago | 1

| accepted

Answered
Button widening effect - app designer
I would recommend using grid layout and using a fixed size for segment containing your button.

ungefär 2 månader ago | 0

Solved


Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

2 månader ago

Load more