Frage


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

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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.

fast 11 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


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...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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 ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 11 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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???

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 11 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 11 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 11 Jahre vor | 3 Antworten | 2

3

Antworten

Frage


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'; ...

etwa 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

etwa 11 Jahre vor | 1 Antwort | 1

1

Antwort

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

etwa 11 Jahre vor | 1

| akzeptiert

Frage


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...

etwa 11 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden