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

8 years ago | 0

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

8 years ago | 1

| accepted

Answered
built-in functions used in polyval
Command window -> edit polyval

8 years ago | 0

Answered
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:...

8 years ago | 0

| accepted

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

8 years ago | 1

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

8 years ago | 0

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

8 years ago | 1

| accepted

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

8 years ago | 0

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

8 years ago | 1

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 1

| accepted

Question


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

8 years ago | 1 answer | 0

1

answer

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 1

| accepted

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

| accepted

Question


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

8 years ago | 1 answer | 0

1

answer

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

Load more