Question


converion of a date
hi, how can i convert this date Thu, Sep-24-15 to a serial date number. thanks

9 years ago | 3 answers | 0

3

answers

Question


Using a script with different inputs from a table
I have a script which has an input x. I have a table n with various numbers. I want the script to be executed in such a way that...

9 years ago | 0 answers | 0

0

answers

Question


rearranging matrices horizontally rather than vertically
I want to reshape this matrix but the following command does the rearrangement not properly. b=(rand(30,1)).' c = res...

9 years ago | 1 answer | 0

1

answer

Question


if command for finding more than three identical numbers in a variable
hi, I need an if condition with the following command. if there are more than three consecutive identical numbers in this matri...

9 years ago | 3 answers | 0

3

answers

Question


how can i find identical rows in a matrix
I have a 158x7 matrix. I want to find if there is at least one row which is identical.

9 years ago | 2 answers | 1

2

answers

Question


if condition equal many variables
If 6==6==6 c=1 Else c=0 end When i type the above code i get c=0 but logically i should get c=6 As 6 is equal t...

9 years ago | 1 answer | 0

1

answer

Question


if condition finding same numbers in consecutive rows
Hi guys I have a table with 120 rows and 5 columns. I want an if condition: if the table contains at least two consecutive ro...

9 years ago | 3 answers | 0

3

answers

Question


turning a vector or matrix into an integer
Hi, I get the vector x=[2;3] or sometimes x=[2;3;7]. I want that to be turned into an integer number, ie. the very last number ...

9 years ago | 1 answer | 0

1

answer

Question


need a code to restart matlab automatically run a function and then restart matlab doing the same
Hi guys, I need a function that allows me to close matlab then open matlab and run a specific function then close again and the...

10 years ago | 2 answers | 0

2

answers

Question


if else elseif and other conditions
if a>b do function x elseif a<b do function y else do function z end # I want a m...

10 years ago | 1 answer | 0

1

answer

Question


finding the source of an error in a timer code
T = timer('Period',400,... %period 'ExecutionMode','fixedRate',... %{singleShot,fixedRate,fixedSpacing,fixedDel...

10 years ago | 1 answer | 0

1

answer

Question


ignoring error whilst running a timer
T = timer('Period',400,... %period 'ExecutionMode','fixedRate',... %{singleShot,fixedRate,fixedSpacing,fixedDel...

10 years ago | 1 answer | 0

1

answer

Question


if statement with conditions a and (b or c)
Hi guys, how can I use the if condition if i want the follow if A and (b or c) how can i translate this as a code???

10 years ago | 1 answer | 0

1

answer

Question


if variable is a matrix then ignore
hi guys, i get several variables. some of these variables are real numbers whilst others are matrices/vectors. I want the varia...

10 years ago | 1 answer | 0

1

answer

Question


finding similar numbers and rounding to integers
Suppose I have 8 variables and I want to run an If function if at least two of those variables are equal to one. All variables a...

10 years ago | 1 answer | 0

1

answer

Question


Collecting a variable every two minutes
Hi, I have a function running in the background that gives me a different value for the variable x every two minutes. Now the q...

10 years ago | 1 answer | 0

1

answer

Question


repeating a script every two minutes
T = timer('Period',120,... %period 'ExecutionMode','fixedRate',... %{singleShot,fixedRate,fixedSpacing,fixedDelay} ...

10 years ago | 1 answer | 0

1

answer

Question


error message when opening matlab file
I am trying to open a matlab file and it gives me the following error. This matlab file was copied on a usb stick from my deskto...

10 years ago | 0 answers | 0

0

answers

Question


skipping errors in a script
Hi, I have a script which consists of several functions: functionA functionB functionC Sometimes I get this e...

10 years ago | 2 answers | 0

2

answers

Question


drawing several graphs or charts in a row
I have four different functions (function1, function2, function3ยด..) They are run in a script and they contain the following cod...

10 years ago | 1 answer | 0

1

answer

Question


TIMER still runs after deleting the variable
currentTimeSecs = rem(now,1)*24*60*60; fireTimerAtSecs = 15*60*60; if currentTimeSecs < fireTimerAtSecs % tim...

10 years ago | 2 answers | 0

2

answers

Question


running a Timer at a specific time
T = timer('Period',120,... %period 'ExecutionMode','fixedRate',... %{singleShot,fixedRate,fixedSpacing,fixedDelay} ...

10 years ago | 1 answer | 0

1

answer

Question


repeat a random function on matlab every 2 minutes
i have a function called. I want it to be repeated every two minutes. how can i do that with a timer?

10 years ago | 1 answer | 0

1

answer

Question


system file watch crash
fsw = System.IO.FileSystemWatcher(); fsw.Path = 'C:\Users\wolfgang\Desktop'; fsw.Filter = 'NZDUSD1.csv'; fsw.EnableRa...

10 years ago | 1 answer | 0

1

answer

Question


deleting a certain variable in the base workspace via a function
hi, assume i have the variable x in the base workspace. I want to delete that variable x via a function. How can I accompl...

10 years ago | 3 answers | 2

3

answers

Question


translating a script into a function and executing it in the base workspace
function test() fsw = System.IO.FileSystemWatcher(); fsw.Path = 'C:\Users\wolfgang'; fsw.Filter = 'test.csv'; ...

10 years ago | 3 answers | 0

3

answers

Question


running a script in a function
fsw = System.IO.FileSystemWatcher(); fsw.Path = 'C:\Users\wolfgang'; fsw.Filter = 'test.csv'; fsw.EnableRaisingEv...

10 years ago | 1 answer | 1

1

answer

Answered
open external programs via matlab
h = actxserver('WScript.Shell'); pause(3); %Waits for the application to load. h.AppActivate('Notepad'); %Brings notepad...

10 years ago | 1

| accepted

Question


open external programs via matlab
h = actxserver('WScript.Shell'); h.Run('notepad'); %Invokes notepad.exe pause(3); %Waits for the application to load. h.App...

10 years ago | 2 answers | 0

2

answers

Question


Running an if function
Hi, I want to run an If function. So if x<3 then I want function "Runningwater" to be executed. How can I implement this as c...

10 years ago | 1 answer | 0

1

answer

Load more