已回答
how can we put the values obtained in static boxes in matrix form in gui?
Sounds like you need a uitable(). <http://www.mathworks.com/help/matlab/ref/uitable.html Read this documentation.> You can...

9 years 前 | 0

已回答
Change color style of plot
I just split up the lines because semilogx() was being annoying: semilogx(tone, Room, 'Color',[1,0.4,0.6]); hold on semil...

9 years 前 | 1

| 已接受

已回答
built-in functions used in polyval
Command window -> edit polyval

9 years 前 | 0

已回答
Identify first instance of something in a .dat file
fid = fopen('test.txt'); data = textscan(fid,'%s %s'); data = [data{1} data{2}]; out = data(1,:); for i=2:...

9 years 前 | 0

| 已接受

已回答
How to send output to the main function from a nested callback function?
This is something I struggled with when I first learned how to build GUIs. The way you have your code set up, a call to Question...

9 years 前 | 1

已回答
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 ...

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

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

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

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

9 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

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

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

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

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

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

9 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/...

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

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

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

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

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

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

9 years 前 | 0

| 已接受

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

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

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

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

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

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

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

9 years 前 | 0

加载更多