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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 2

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 1

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 5

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

más de 6 años hace | 1

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 1

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

más de 6 años hace | 5

| aceptada

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

más de 6 años hace | 0

| aceptada

Cargar más