like for
disp([strcat(datestr(now),' -') ' ' num2str(var) ' ' num2str(cost)])
I get
25-Dec-2021 18:38:54 - 1.2 2.4 5.8 6.3
I would like the numbers to be formatted and equally spaced
25-Dec-2021 18:38:54 - 1.20 2.40 5.80 6.30
Thank you
thanks that worked.
Another question: is there a way to have the four numbers formatted for something like 'f5.3' for the numbers (var & cost)?
Not sure where to insert 'f5.3' since these are two arrays
Hello
I am trying to program an optimization where I would like to print the date, time, variables values and objective functions values in one row.
I have two vectors var=[1 2.7] and cost=[5.8 6.1]
I would like to display something like the lines below
25-Dec-2021 17:22 - 1.0 2.7 5.8 6.1...
Hello,
I don't think that adresses the issue.
Let me try again: I have a file with strings in it. Matlab does not know they are strings. They are NOT defined as "aaa", "bbb" ... but aaa, bbb ...
Matlab has to read the list in the file and assign them to an array of strings
Hello,
I simply need to read an ascii file that consists of a number of names into an array in Matlab.
say the file is:
aaa
bbb
ccc
....
I need to create an array aa in matlab where aa(1)='aaa', a2='bbb' .... and where the values ARE NOT CELLS but strings
thank you
Hello,
I have a huge file with numerous objects I need to work on.
I need to identify various bodies that I cannot see in the GUI. The screen is very busy and I need to extract some objects and delete unnecessary ones, but it is too risky to do it with the GUI. I would like to do it with a...
Thanks, I passed that line.
Now it fails on
ActiveChart.SetSourceData Source:=Range(RR(0), RR(1), RR(2))
I do not know how to proceed with the "Union"
Thanks
well, for starters, it just fails on
Range(RR(0),RR(1),RR(2),RR(3),RR(4),RR(5),RR(6),RR(7),RR(8),RR(9),RR(10),RR(11)).Select
what I am trying to do is defining an ARRAY of ranges, so I can use the definitions of the series collections in a loop (using the cells method)
Hello,
I am trying to create a chart with many plots and would like to do something similar to the code below.
Sub Macro1()
'
Dim R1, R2, R3, R4, R5, R6, R7 As Range
Dim RR(11) As Range
Sheet2.Select
For i = 0 To 11
Set RR(i) = Range(Cells(9, 2 + 9 * i), Cells(209, 2 + 9 * i))
Next i
'...
Hello,
I need to read in an unknown number of array elements. i do not know how to handle the dimension of the arrays.
I start with declaring the size of each array as 101, but the file includes an unknown number of array components so I would nee to resize the array, which cannot be done in...
Hello,
I have this routine (see below) which prints to a file the coordinates of polylines and lines selected from the screen.
I would like to enhance this routine by allowing it to get the information from 3D objects. I was not able to find anything on the topic. Is it possible at all?
To be...
Hello,
I am trying to analyze in CST a waveguide assembly which includes a resistive card made of a material which has a resistivity of 150 ohm/square.
The card ascts as a mode supressor.
How do I define the material properties?
Any suggestion would be appreciated.
Thanks
tuli
Hello,
I am trying to analyze in CST a waveguide assembly which includes a resistive card made of a material which has a resistivity of 150 ohm/square.
THe card ascts as a mode supressor.
How do I define the material properties?
Any suggestion would be appreciated.
Thanks
Kato01
Hello,
(Silly question?)
I am using Compaq Visual Fortran ver. 6.6.
When I am in the debug mode, and the program crashes I get the assembler page with indication of the line where the program stopped.
When I go to the source code, there is no indication on where the last line was executed.
Also...