photo

Tom


Active since 2012

Followers: 0   Following: 0

Message

Statistics

All
MATLAB Answers

2 Questions
114 Answers

File Exchange

1 File

Cody

0 Problems
36 Solutions

RANK
234
of 299 252

REPUTATION
404

CONTRIBUTIONS
2 Questions
114 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
78

RANK
7 850 of 20 672

REPUTATION
117

AVERAGE RATING
0.00

CONTRIBUTIONS
1 File

DOWNLOADS
1

ALL TIME DOWNLOADS
1176

RANK
14 321
of 163 923

CONTRIBUTIONS
0 Problems
36 Solutions

SCORE
370

NUMBER OF BADGES
1

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • First Review
  • First Submission
  • 3 Month Streak
  • Thankful Level 1
  • Knowledgeable Level 4
  • First Answer
  • Solver

View badges

Feeds

View by

Question


Logarithmic scale for colorbar
I sometimes require a plot which has a colorbar with a log scale. Previously I did this by setting the 'yscale' property of the ...

mer än 10 år ago | 2 answers | 0

2

answers

Answered
Access to Excel-Worksheet-Cells Property
oWorksheet.Range('B2')

ungefär 12 år ago | 0

Answered
Converting elements which repeat more than 10 times to 0
A = [1 -1 1 1 -1 -1 1 1 1 1 1 1 1 1 1 1 1 1 -1 1 -1 1]; Correct = [1 -1 1 1 -1 -1 1 1 1 1 1 1 1 1 1 1 0 0 -1 1 -1 1]; ...

ungefär 12 år ago | 0

Answered
Add new rows to Table (GUI uitable)
%hTable: handle to the table %newRow : the row of data you want to add to the table. oldData = get(hTable,'Data'); ...

ungefär 12 år ago | 2

| accepted

Answered
How do you enable a GUI to adjust to fit screens of varying resolution
In GUIDE, under Tools -> GUI options you can specify the resizing of the figure, including your own resize function. You migh...

ungefär 12 år ago | 1

| accepted

Answered
How to split letters in a word into an array
str = 'HELLO'; cellstr(str')'

ungefär 12 år ago | 8

Answered
Is it possible to create "x" amount of objects with pop-up menus in GUI depending on the user input?
You can do it programatically, using the UICONTROL function function Create_Panels(varargin) %tile a series of panels, e...

ungefär 12 år ago | 2

| accepted

Answered
Drag and drop axes (Rush hour game)
function Drag_Axes_Test close all clc F = figure('Position',[200 100 900 500]); AX = axes('Units','Pixels','Po...

ungefär 12 år ago | 0

Answered
Plotting different line colors within subplots avoiding duplicate colors?
Or: set(gca,'NextPlot','ReplaceChildren','ColorOrder',cell2mat(C')) plot(Volume_Major,'LineWidth',2)

ungefär 12 år ago | 0

Answered
Plotting different line colors within subplots avoiding duplicate colors?
h = plot(Volume_Major,'LineWidth',2) set(h,{'Color'},C')

ungefär 12 år ago | 2

| accepted

Answered
Drag and drop axes (Rush hour game)
To be honest I don't quite follow all of this, but what I can see is that the handles structure isn't passed to other callbacks ...

ungefär 12 år ago | 0

Answered
visibility of an edit text / GUI
First of all, I think you should use a togglebutton, as with a pushbutton the edit box would go invisible as soon as you let go ...

ungefär 12 år ago | 0

| accepted

Answered
How can I make a file be automatically closed after ending a running matlab script...
What conditions do want to satisfy to make it close? Or rather, what is preventing you from using close(vidObj) ?

ungefär 12 år ago | 0

Submitted


Excel Write Format
Write data to Excel through MATLAB and format the spreadsheet.

ungefär 12 år ago | 1 download |

0.0 / 5
Thumbnail

Answered
using greater than or less than in 'switch' and 'case' expressions
inequalities are best used with IF statements rather than switch; switch is useful for handling a variety of known values. If...

ungefär 12 år ago | 2

Answered
When fprintf, I need a return (\r\n) after each line (with inconstant number of values per line)
Data = {'alpha', 1 , 2 , 3, 'beta' , 'gamma' , 'delta' , 4}; % find locations strings and numeric data: str = cellfu...

ungefär 12 år ago | 0

| accepted

Answered
How to adjust the x-axes and y-axes values without resizing the image/figure?
AX = axes; plot(rand(5)) oldTick = get(AX,'YTick'); %get the current tick points of the y axis newTickStr = cellstr(n...

ungefär 12 år ago | 2

| accepted

Answered
GUIDE: Updating table rows depending on popup user choice
Set this for the popupmenu callback. In the CreateFcn callback of the popupmenu, you can add some options, e.g. set(hObj...

ungefär 12 år ago | 0

| accepted

Answered
for loop indexing problem
My guess is that these Ns should be Is: X_Mode(i)=ModeShapes(n,1); Y_Mode(i)=ModeShapes(n,2); Z_Mode(i)=ModeShapes(...

ungefär 12 år ago | 0

| accepted

Answered
How to limit input formats in an edit text box?
STR2DOUBLE catches most of those things and outputs NaN if the number isn't valid. The only thing is that it will handle commas....

ungefär 12 år ago | 1

| accepted

Answered
Easy question comparing strings
You can just ISNAN instead: str = input('Please enter a number \n\n','s'); X = str2double(str); if isnan(X) dis...

ungefär 12 år ago | 0

| accepted

Answered
GUIDE - guidata not working
It doesn't work because you're changing the handle itself, so the program can no only reference the controls. I'm guessing you ...

ungefär 12 år ago | 0

Answered
How to limit input formats in an edit text box?
validStr = {'5' '0.5' '1.6' '5.9' '0.4565132' '5.0000' '00000.5'}; if any(strcmp(get(hEditBox,'String...

ungefär 12 år ago | 0

Answered
gui programticly , issue with uipanel
It is there, but it's off the screen because of the units: if you set the uipanel Units field to 'Pixels' before you set the pos...

ungefär 12 år ago | 0

| accepted

Answered
append data...it doesnt change line
try adding a carriage return as well: fprintf(fid,'4 \r\n') I'd also recommend using fclose(fid) each time you've finish...

ungefär 12 år ago | 0

| accepted

Answered
Reading from Multiple files & Multiple sheets
for n = length(fileNames) %fileNames is a cell array of filenames Book = Ex.workbooks.Open(fileNames{n}); ...

ungefär 12 år ago | 0

| accepted

Answered
Delete rows with NaN for a cell array
A(any(cellfun(@(x) any(isnan(x)),A),2),:) = [];

ungefär 12 år ago | 2

| accepted

Answered
Delete duplicated row in a matrix
I = ~ismember(a(:,1:2),b(:,1:2),'rows'); a = a(I,:)

ungefär 12 år ago | 2

| accepted

Answered
Access elements/fields from a struct
Structures can be referenced dynamically, i.e. using variable names not strings the user has written. In this case you have to p...

ungefär 12 år ago | 5

Answered
Uitables and widgets question
1) Yes 2) Yes you can change the column format of the table at any point, using the ColumnFormat field of the uitable: ...

ungefär 12 år ago | 1

| accepted

Load more