Community Profile

Harry MacDowel


49 total contributions since 2010

“Computers are useless. They can only give you answers.”
(Pablo Picasso)
Professional Interests: data processing

Contact

Contributions in
View by

Answered
When using fopen, what's the difference when we include/exclude 'w' in the second half of the parenthesis?
The 'w' simply means write. So if the file 'exp.txt' does not exist, that command will create exactly the file, and allows yo...

3 years ago | 0

Answered
what is wrong with fprintf
Try this fprintf('the first number is %0.1f and the second is %0.1f\n',a,b)

5 years ago | 0

Question


Pan a Plotted Curve with a Stationary Plot Behind
figure; X = rand(100,1); Y = rand(100,1); plot(X,Y); hold on; plot(X,sin(Y)); I want to be able to pan t...

5 years ago | 1 Answers | 0

1

answer

Answered
trend line calculation and display
First, plot the data like usual. Then go to Tools -> Basic Fitting Choose one of the fittings you like, then check Show ...

5 years ago | 1

| accepted

Answered
how ro rename matrix
newmatrixname = matrix1;

5 years ago | 0

| accepted

Answered
How do I change the Matlab Desktop font preferences using commands?
You know what, Yair, I bet you gonna love this extraordinary File Exchange function called cprintf Check it out here:- ...

5 years ago | 0

Answered
While loop homework problem
I felt a bit bored so I do the coding for you. Also I might have use for this in near future. Just run arcCosSin in command wind...

5 years ago | 0

| accepted

Answered
how would i make this tricky switch case
help switch

5 years ago | 0

Answered
Display Log scale on y axis of graph
A log scale but not the log of your data, that is exactly what semilogy is doing. In fact I think you are not stating your prob...

5 years ago | 0

Answered
Somehow the 2nd X-Axis is not what it seems
Anyway I tried several more methods including those suggested by Walter. My conclusion of solving this problem is as follows:...

5 years ago | 0

Answered
The music you listen to when you're Matlab-ing?
Interesting stuff you got there, Walter! For me it is some fast-paced hip hop songs like Eminem's "Lose Yourself" to wake me up...

5 years ago | 0

Answered
Somehow the 2nd X-Axis is not what it seems
The following code before the figure is plotted solve the apparent bug:- set(figurehnd,'position',[1 47 1440 786]); ...

5 years ago | 0

Question


Somehow the 2nd X-Axis is not what it seems
I am plotting a 2nd y-axis to my existing codes without any data on it so I am actually 'converting' from one to the other, as b...

5 years ago | 3 Answers | 0

3

answers

Responded


Re: dual axis (metric and feet)
Daniel, although this is a thread from 4 years ago, your solution still made my day. Thanks a lot!!! Harry

5 years ago | 6076 views

Question


The music you listen to when you're Matlab-ing?
Hie all, I am always interested in what kind of music that gives you the kick when you're programming. You can be a little spec...

5 years ago | 4 Answers | 0

4

answers

Answered
Regarding calling of matrix outside for loop
Combined = [] for i=1:1:4 Mat = rand(2); Combined = [Combined;Mat]; end

5 years ago | 0

| accepted

Answered
finding number of a column in a cell (column that contains a specified string)
find(char(CELL)=='a') Does that help?

5 years ago | 1

Answered
burst duration
I do not know what do you mean by consecutive values. You mean 1,2,3,4,5,6,7... consecutive? Or 1,1,1,1,1,1,1.. consecutive? ...

5 years ago | 0

| accepted

Answered
Indirect addressing in structure
It works like this:- P.variable = rand(20,1); x = [4 5 6 9]; for ii=1:4 P.variable(x(ii)) = ii; end ...

5 years ago | 0

Answered
load() into workspace?
Why don't you use textread or textscan or fscanf? doc textread doc textscan doc fscanf You can control the type ...

5 years ago | 0

| accepted

Answered
Axis date values disappear when datetick is applied to a simple time-series plot
I feel your pain. I used to deal with date on x-axis and it is really a huge, huge pain. I suggest you go to File Exchange and ...

5 years ago | 1

| accepted

Answered
cropping satellite image (RGB image)
Unhas, To save the image in high quality, look for the print function doc print You can even set PaperPositionMode....

5 years ago | 0

Responded


Re: Problem on refining the output vector of ode solver
Even the ode output is not of same timestep, you can always use functions like polyfit etc to find the value at the time you wan...

5 years ago | 1735 views

Responded


Re: Connect multiple data points using plot function
Separate the plots. Use scatter for the marker. then hold on then plot(x,y,'-s') etc Continue for the other plots.

5 years ago | 14393 views

Answered
find peaks
Sometimes identifying the noise would be a good start. Try Allan Variance method. Good luck!

5 years ago | 0

Answered
is it possible aarays in first row and first column of a cell be writen in red or other color?
I think that has something to do with the display of the data rather than the content of the data. What I know is, in GUI, yo...

5 years ago | 0

Question


Simulink Signal and Physical Signal
I am new to Simulink although I'd been using Matlab for a long time. I am planning to use the Simhydraulic package. I have tw...

5 years ago | 1 Answers | 0

1

answer

Answered
GUI Button with keyboard shortcut
Yes you can, Jan. If you want to do that, you can define the KeyPressFcn by passing the input into a function you created you...

5 years ago | 0

Answered
Pushbutton in GUI
I do not know whether you refer to the variables which are executed in pushbutton1 to pass it to pushbutton2 or you want to know...

5 years ago | 0

| accepted

Answered
Find similarity between string inputs
The function strcmp is a good start for you to study:- <http://www.mathworks.com/help/techdoc/ref/strcmp.html>

5 years ago | 0

Load more