已回答
How to build a GUI from a m-file?
You can try using GUIDE (type "guide" into the command window). I prefer writing my own GUIs from scratch because I'm not a fan ...

10 years 前 | 0

已回答
How do you create a filename and path in MATLAB for the xlswrite function?
You can use inputdlg() to ask for a string, then append '.xlsx' to the end. If you want to have the user be able to save the fil...

10 years 前 | 1

| 已接受

已回答
How to use the unique command in a loop and how to filter data?
If your data is organized something like: Year Team Goals 2001 1 14 2001 2 12 2002 3 8 2003 1 9 2002 1 16 ...

10 years 前 | 0

已回答
How can I plot two vectors starting from origin?
Try the <http://www.davinci-draw.com/ Da Vinci Draw Toolbox>. The old arrow.m file doesn't work anymore. There is a method us...

10 years 前 | 1

已回答
How 384x512x3 image coordinates convert in to mm or cm?
You really can't, unless you have some specification for how many pixels/cm your print or display is supposed to be. For exam...

10 years 前 | 0

已回答
How to write this matlab code:
if Ycount < Yget && Yget > 0 %Q1 elseif Ycount > Yget && Yget > 0 %Q2 elseif Ycount > Yget %Q3 end

10 years 前 | 0

已回答
How can you obtain a system time response to a ramp function in Matlab?
There's a solution by Azzi Abdelmalek <http://www.mathworks.com/matlabcentral/answers/63552-how-find-ramp-response here> t...

10 years 前 | 0

| 已接受

已回答
how can i put the elements of a character matrix in to another matrix?
Matlab will do this because it converts character array A into their respective ASCII values, P = 80, R = 82. In order to store ...

10 years 前 | 1

| 已接受

提问


Hide all elements of an axis
I have two axes objects in a figure and I'd like to switch back and forth between them by hiding the appropriate object. There i...

10 years 前 | 1 个回答 | 0

1

个回答

已回答
Change marker size in clabel/contour
You can put additional options in your call to clabel(). To change the font size: clabel(c,h,'fontsize',%a scalar greater th...

10 years 前 | 0

已回答
Create a function to extract data several csv files
Place all the files you need to work with in your current directory and use files = dir('*.csv'); This will list all the...

10 years 前 | 0

已回答
Wind rose - how to remove axis?
Don't know if there's an updated, more elegant way to do this, but the solution <http://www.mathworks.com/matlabcentral/answers/...

10 years 前 | 0

| 已接受

已回答
Need help trying to figure out what the following notation means.
It appears that stuffs is a structure array. The author is accessing the fields name, h, and nu in structure i in the array.

10 years 前 | 1

| 已接受

已回答
How to find first two maximum number in the matrix
Assuming there are at least 2 values for TE/PE for each ID: uniqueVals = unique(A(:,1),'stable'); output = zeros(numel(uni...

10 years 前 | 0

已回答
Find Function in a for loop - store rows and columns
Why don't you just find the size of your matrix after your loop? rows = size(myMat,1); cols = size(myMat,2);

10 years 前 | 0

| 已接受

已回答
How can I extract the last rows of specific columns of a text file
Open the file fid = fopen('your file name.txt'); Skip the header fgetl(fid); Use textscan() myOutput = textsca...

10 years 前 | 0

已回答
Read textfile seperated by ':' and put it in a table
Use strsplit() with the delimiter ':'. It doesn't care how many colons are in a row. All the data will be put into a cell array ...

10 years 前 | 0

| 已接受

已回答
Find values of row in matrix
matrix(index,:); ismember(A,B) returns a logical vector true when A is found in B, it doesn't apply here since you're not tr...

10 years 前 | 0

| 已接受

已回答
Use Excel columns as X Y cell coordinates to look up Z values from matrix
myVals = diag(z(X,Y));

10 years 前 | 0

已回答
two questions. (ascending order, ASCII)
For #1, you can either sort as the user inputs numbers or sort at the end. Personally, I'd just sort it at the end for simplicit...

10 years 前 | 0

已回答
How to get value from cell
str2double(myCell{index}); index is whatever index the data you need to convert is. If you need to run this command on all c...

10 years 前 | 0

| 已接受

提问


Forcing GUI to wait for user to select a file
How can I pause execution and wait for uigetfile() to close? I don't see a figure handle being returned from uigetfile(), so I d...

10 years 前 | 1 个回答 | 0

1

个回答

已回答
remove the Text from the files
Read in the first line, use str2num(). If the result is [], read the next line. If it's a numerical line, it should return a 1x3...

10 years 前 | 0

已回答
Extract data from a file, but without knowing the data's specific location within the file?
Well this text file is honestly a nightmare to parse, but I'd do the following, assuming that the format is the same for differe...

10 years 前 | 0

已回答
Need to output my data which is currently in a for loop to a table!
Take a look at the <http://www.mathworks.com/help/matlab/ref/table.html documentation> for table() You need to format your da...

10 years 前 | 0

已回答
How to set values of specific data columns in a uitable
You need to extract the entire set of data from the uitable, edit it, then set it back as the uitable's data. tableData = ge...

10 years 前 | 2

| 已接受

提问


Using a loop to print subplots
I want to print an 2x2 grid of plots on an axes in a GUI. I'd like for there to be multiple "pages" of these plots so a user can...

10 years 前 | 1 个回答 | 0

1

个回答

已回答
Summing different set of arrays.
There's no need to use a for loop for this job. In any case, you've incorrectly set up a for loop. you need a loop control varia...

10 years 前 | 0

已回答
Alternative to waitfor? Need menu functionality using dialog but waitfor freezes everything until the GUI is closed.
Try changing the 'WindowStyle' property to 'normal'. The default for dialog() is 'modal', which means the dialog box created is ...

10 years 前 | 1

| 已接受

已回答
Using a while loop on a Taylor Series?
You need to update your variable "count". Your function repeatedly calculates the value when count = 1, so naturally on the seco...

10 years 前 | 0

加载更多