Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: converting list of zero length to a matrix of 3*3
Post: converting list of zero length to a matrix of 3*3

I have a list (length of a list is one) [[1,2,3],[4,5,6]], I like to convert it to a matrix (2*3). something like this [1 2 3 4 5 6] This is an example of a real problem, therefore not putting...
vp1989 General Coding Help 2 1,939 May-20-2020, 12:27 PM
    Thread: Using Function in a For loop
Post: RE: Using Function in a For loop

(May-19-2020, 11:52 AM)jefsummers Wrote: One issue is indentation. Line 43 is at the same level as the for loop. Don't think that is intentional, though might be depending on your logic. Bigger issu...
vp1989 General Coding Help 5 2,816 May-19-2020, 03:53 PM
    Thread: Using Function in a For loop
Post: RE: Using Function in a For loop

I simplified the code for the readers. import numpy as np import sys import math import copy row_matrix=9 #row coulomn_matrix=9 tstep=10 #number of one iteration interval=5 #lenghth of one interv...
vp1989 General Coding Help 5 2,816 May-18-2020, 05:49 PM
    Thread: Using Function in a For loop
Post: Using Function in a For loop

Using function variable C from the previous iteration and then calculate VB for the current iteration. Then Use VB to calculate C from the next iteration. I am facing the problem to sync the loop and ...
vp1989 General Coding Help 5 2,816 May-18-2020, 05:04 PM
    Thread: Updating a matrix in a time interval inside a for loop
Post: RE: Updating a matrix in a time interval inside a ...

The logic worked thank you. :)
vp1989 General Coding Help 4 2,919 May-17-2020, 07:15 PM
    Thread: Updating a matrix in a time interval inside a for loop
Post: RE: Updating a matrix in a time interval inside a ...

Hi thanks for the reply, the interval is a typo. I like to keep P for each interval. But a copy is not working in my code. I should have P at 9,19, and 29 so that I can use it somewhere else. Thank...
vp1989 General Coding Help 4 2,919 May-17-2020, 06:48 PM
    Thread: Updating a matrix in a time interval inside a for loop
Post: Updating a matrix in a time interval inside a for ...

I would like to get a maximum of a matrix in intervals inside for loop. Matrix K has dimension (N,3,3). I like to have a matrix P (Max of K) between N 1 to 10, and then update it again with K and fin...
vp1989 General Coding Help 4 2,919 May-17-2020, 03:43 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020