Community Profile

photo

Andy


Last seen: 2 months ago

Bentley Motors Ltd

21 total contributions since 2013

Contact

Andy's Badges

  • First Review
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How to scale a graph
Use this immediately after the plot command to specify how you want the axis to plot. ylim([-19 0])

3 months ago | 0

Answered
Error: Too many output arguments
Assuming that the information you want to return is dR_tow, change the first line of the function to function [dR_tow] = crn(to...

3 months ago | 1

Answered
creating 2 by 2 matrices having 3 entries same in all but 4th one different
Rather than using numbers as part of the variable name use a cell structure m{1} = [1 0; 0 f(x(1))] You can then easily use a ...

3 months ago | 0

Answered
How to pass data from a MatLab GUI to an .m file?
If you want an m file to ask for an input why not use inputdlg ? If you want the GUI to be the one that the user works with, ru...

4 months ago | 0

| accepted

Answered
Index in position 2 is invalid. Array indices must be positive integers or logical values.
If the 3 lines of code are all you are running, where is i set when you attempt to reference it in line 3?

10 months ago | 0

Answered
change the iteration in for loop
I don't think the For loop is what you need. i =1; while i<11 % calculate c if isnan(c(i))==0 & c(i)<=0.009 ...

11 months ago | 0

Answered
How to import randomly named files from a folder into different matrices
If I understand correctly, try filename=strcat('c:\Users\Oleg\Desktop\Nuevo cartella\',names(1,:)); matrix=fopen(filename); O...

11 months ago | 0

Answered
how can I change level of sine wave ?
x=(sin(2*pi*f*t)*32)+32;

1 year ago | 0

| accepted

Answered
add values to my matrix each time i click on the button gui
Each time the code runs you are setting the matrix A to its start value, a 2 x 3 matrix, then adding row three. The answer will ...

2 years ago | 0

Answered
finding the duration of a sequence of data
positive = (data>0); % Identifies when the head is to the right. pos_count = sum(positive); % gives you the number of...

3 years ago | 0

Answered
How to save each iteration of a loop into the same sheet of an Excel spreadsheet?
xlFilename = 'c:\data\filename.xls'; xlRange = strcat('A',int2str(i)); xlswrite(xlFilename,yourdata,'YourXLSheetName',xl...

4 years ago | 1

| accepted

Answered
Read txt file into a matrix
Try this, auto-generated by using the Import Data tool and the Generate Script option in the drop down menu of "Import Selection...

5 years ago | 1

Answered
Alert sound for warning me the program run overtime?
Set up a timer at the start of the code i.e. alert=timer('TimerFcn','beep','StartDelay',200,'Name','Timer-1') At the s...

5 years ago | 0

Answered
Editing of Excel file with Matlab
look in the help for xlsread and xlswrite I have used these several times without problems.

5 years ago | 0

Answered
Importing csv file in matlab
dlmread is for numeric only files. In your file you have text in the first row. Have you tried readtable ?

5 years ago | 0

Answered
Hi every one is there any way how to subtradt two matrices of different dimension let say A=<424x544x3uint8> and B=<462x545x3 uint8> How can we perform subtraction like S=A-B. Thanks
How about expanding the two inputs to generate matrices with matching dimensions, assuming A(1,1) lines up with B(1,1) As...

5 years ago | 0

Answered
index out of bounds
I assume you have two variables which you are indexing to loop through the image i.e. for x = 1:50 for y = 1:50 ...

6 years ago | 0

Answered
index of out of bounds from txt
Hi Nicola, head=fscanf(fid,'%d',11) you are constantly changing the value of head, not incrementing it. Try: - fid=fo...

6 years ago | 0

Answered
How to make matlab use more CPUs
I am surprised you are managing to use 4 CPUs but then my only experience is with desktop PCs not servers. To use more more you ...

6 years ago | 0

Answered
.txt file to a string
"importdata" will work with a .txt file that is just a series of numbers ie. 1 2 4 5 7 9 8 7 3 0 Using notepad I created a .tx...

6 years ago | 0

Answered
how to call a function
Write the function you need and save it in the active directory or on the path i.e. function [newnumber] = examplefunction...

6 years ago | 1

| accepted