Risposto
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);

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 1

| accettato

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

oltre 6 anni fa | 1

| accettato

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

oltre 6 anni fa | 2

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 2

| accettato

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

oltre 6 anni fa | 2

| accettato

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

oltre 6 anni fa | 1

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

oltre 6 anni fa | 0

Risposto
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'});...

oltre 6 anni fa | 0

| accettato

Risposto
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')

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 5

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

oltre 6 anni fa | 1

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 1

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

oltre 6 anni fa | 5

| accettato

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

oltre 6 anni fa | 0

| accettato

Carica altro