Answered
How to display Heatmap plot in UI Axes of matlab app designer ?
Place Uipanel in the position you want heatmap. h = heatmap(app.Panel1,tbl,xvar,yvar);

6 years ago | 0

| accepted

Answered
How can I convert my code to the exe file?
If the user do not have admin rights, you can use the following workaround. I have tested this in Win10, but the system has Mat...

6 years ago | 0

Answered
How to find maximum value of each event present in a series ?
Another option data = readtable('2000.xlsx'); data.Date = fillmissing(data.Date,'previous'); % assume the data is in ascendin...

6 years ago | 1

| accepted

Answered
Add structs in a saved array of structures
You can use the matfile function to write directly to a mat file a = matfile('newfile.mat','Writable',true); n = 10; for i = ...

6 years ago | 1

| accepted

Answered
Is it possible to use the for-loop for this purpose?
You can use the for loop. Modify it as you deem fit. % load from xlsx or from your mat file. matching_station = readtable('tab...

6 years ago | 2

Answered
How to set shortcuts for zoom tool in my own GUI?
Just tested your code. turns out event key is in lower case. Just to safe (in case of capslock), lets convert the value to upper...

6 years ago | 0

| accepted

Answered
Help me to find nearest latitude and longitude between a bunch of latitudes and longitudes
You can do it like this dist = sqrt((coordinates.lon - coordinates.lon').^2 + (coordinates.lat - coordinates.lat').^2); dist(d...

6 years ago | 0

| accepted

Answered
How to properly position multiple plots within app-designer
In the Design view, drop a Panel in the position you want to place the tiledlayout. You will have to create in code. Click code...

6 years ago | 2

| accepted

Answered
Keep existing subplots while running code multiple times
You can change your code as follows. fOp.figName='my_title'; hf = findobj('Type','figure','Name',fOp.figName); if ~isempty(h...

6 years ago | 2

| accepted

Answered
How to divide a distance into some equal parts?
Assuming the coordinates are variable p1, p2 % p1 = [x1 y1]; % p2 = [x2 y2]; midpoint = p1 + 0.5.* (p2-p1); % halfway point ...

6 years ago | 1

Answered
How to extract confusion-matrix from confusion-chart?
You need to use the function confusionmat actual = t; predicted = y; mat = confusionmat(actual,predicted);

6 years ago | 0

Answered
data grouping (like pivot table in excel)
You can use the groupsummary function to summarize your data. %data = yourdata out = groupsummary(data,{'Date' 'event_type'});...

6 years ago | 0

| accepted

Answered
Can you force a logistic regression to have a 0 y-intercept using glmfit?
Set the constant to off b = glmfit(X,[y n],'binomial','link','logit','constant','off')

6 years ago | 0

Answered
Build charts from Excel.
You can use two for loops. The outer for loop can iterate over the column C, and subset the data and create new figure. The i...

6 years ago | 0

Answered
Creating Matrix between two values
If I understood correctly, you can use the function randi to generate a matrix of integers for any specified size. randi([10 90...

6 years ago | 5

Answered
Is is possible to change the font size of a questdlg's buttons?
You can use the optional opts argument to enable the Interpreter tex. Then you can use the supported modifier \fontsize{..} in f...

6 years ago | 1

Answered
App designer: randomly generated sentence GUI
If you are using app designer, to build your GUI you can do as follows. Drag and drop a button and an "Edit Field (Text)" into ...

6 years ago | 0

| accepted

Answered
help!!!plot problem not a line
This is because your code as stated will only output a single value for variable 'p'; This is because of how you initialised th...

6 years ago | 0

| accepted

Answered
can we train alexnet or others for only one class via transfer learning?
For transfer learning, you need to remove the final 3 layers and replace them with your own. Hence you can train it as binomial...

6 years ago | 0

Answered
Does 2019b (windows) contains java?
Matlab includes a JVM. You can check the version by typing this in the console. version -java You can read Matlab's documentat...

6 years ago | 0

Answered
Exchange data between MATLAB-compiled standalone application and MATLAB
Hi, I would suggest that in your code, you load the messages as either a .mat file or a .txt file. messages = load('messages.m...

6 years ago | 0

Answered
Sort the rows of a table based on row entries in two columns of another table
inner join will return a second optional output, ileft ileft = Index to Tleft, returned as a column vector. Each element of ile...

6 years ago | 0

Answered
Restructure table and add missing values
If I understand your question correctly, there are 2 very powerful matlab functions that you can use. These are named "unstack...

6 years ago | 0

Answered
Code for looping through a folder and sub-folders within that folder to get .csv files and move them to the main path
You can use the dir function to list the folders and files in any folder. You can use the movefile function to move the files ...

6 years ago | 0

Answered
Problem with xticklabel location when using 'YDir' reverse
You can try and change the position property of the xlabel. a = gca; pos = a.XLabel.Position; pos(2) = pos(2) - 10; % adjust...

6 years ago | 0

Answered
how to extract a part of a table using logical indexing and plot a scatter figure
You are on the right track. You just need to use the indexing as normal. You can check the plot documentation for the color, m...

6 years ago | 0

Answered
How can I replace the species in the iris dataset with numerical data instead
You can try converting the class name to categorical. This would allow comparisons by name. name = {'A' 'B' 'C'}; name = categ...

6 years ago | 0

Answered
Error with timer TimerFcn
This might be an error from your PlotFunction. I suggest you place a debug point in your PlotFunction and then run the app to se...

6 years ago | 1

Answered
How to remove duplicate rows in a matrix by considering the repeated values in a specific column?
You can use the unique function to return you the index of the unique values in the first column. Use the stable keyword so the...

6 years ago | 5

| accepted

Answered
Selective unzipping of files
You will need to use java if you wish to extract only specified files You can refer to java documentations at the following lin...

6 years ago | 0

| accepted

Load more