提问


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

8 years 前 | 3 个回答 | 0

3

个回答

提问


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 前 | 0 个回答 | 0

0

个回答

提问


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 前 | 1 个回答 | 0

1

个回答

提问


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 前 | 3 个回答 | 0

3

个回答

提问


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 前 | 2 个回答 | 1

2

个回答

提问


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 前 | 1 个回答 | 0

1

个回答

提问


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 前 | 3 个回答 | 0

3

个回答

提问


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 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 0 个回答 | 0

0

个回答

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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?

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 3 个回答 | 2

3

个回答

提问


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

9 years 前 | 3 个回答 | 0

3

个回答

提问


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

9 years 前 | 1 个回答 | 1

1

个回答

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

9 years 前 | 1

| 已接受

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

加载更多