Community Profile

photo

PT


Last seen: 7 months ago
9 total contributions since 2013

Contact

PT's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How do I reserve a size for my data so that zero's are not dropped or forgotten?
Use datevec(datenum('01/02/0003')) The output will be in the form of [ Year Month Day Hour Minute Second ...

8 years ago | 0

Answered
Can MATLAB increment multiple rows of array data?
%% Load filename = 'test.txt'; fh = fopen(filename, 'r'); Table = []; Rows = {}; ncol = []; j = 0; ...

8 years ago | 0

Answered
How do I extract certain characters using for loop?
You define the loop index to increase by 5, instead of by 1. a = 'ABCDEFGHIJKLMNO'; for i = 1:5:length(a) b = a...

8 years ago | 0

Answered
using an array in a for loop
array = 1:100; newarray = cell(length(array),1); for i = 1:length(array) newarray(i) = {['Name' num2str(array(i...

8 years ago | 0

| accepted

Answered
Is it possible to have a switch case statement with the number of cases based on the length of a variable?
I am not aware there is any way to dynamically populate a switch statement. However, you can populate the popup menu during runt...

8 years ago | 0

Answered
Edit line in text document
Two issues: 1. As the help of fopen states, you must have a fseek between fgetl and fprintf. 2. You are changing the overa...

8 years ago | 0

Answered
Using an if clouse, and based on a generated code ie User ID displayed in a textbox, how can i link the ID to a user name of choice by displaying the name in a txt box
Let's assume the following: The tag for the pushbutton is "update". The tag for the User ID editbox is "userid". The tag for ...

8 years ago | 0

| accepted

Answered
Improving a search algorithm
function y = binge(x) binge= [00000001, 00000010, 00000020, 00000021, .........,90000000; 0.11111, 2.4433, ......

8 years ago | 0

| accepted

Answered
How do I get MATLAB to output a digital marker via the parallel port to Biopac's Acqknowledge software?
Take a look at "digitalio" in the Data Acquisition Toolbox. Here's a short example code: % Initialize 2 lines (2nd line res...

8 years ago | 0

| accepted