Réponse apportée
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);

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
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 = ...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 2

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 2

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 2

| A accepté

Réponse apportée
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 ...

environ 6 ans il y a | 1

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

environ 6 ans il y a | 0

Réponse apportée
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'});...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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')

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 5

Réponse apportée
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...

environ 6 ans il y a | 1

Réponse apportée
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 ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 5

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Charger plus