답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 2

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 2

| 수락됨

답변 있음
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년 전 | 2

| 수락됨

답변 있음
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년 전 | 1

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

대략 6년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 5

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 5

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

더 보기