16,016,088 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by shweta89 (Top 11 by date)
shweta89
27-Mar-15 13:26pm
View
i tried it and will try again too.
i want the output that looks like symmetric matrix. by getting value from one matrix and frequency depend on vector.
is there any other method to make the block matrix. blockdiagonal matrix is easy to make in matlab. but not getting any function to make blockmatrix.
well thanks for your help. I am new in this coding field so i need some help.
shweta89
27-Mar-15 13:08pm
View
not getting the exact output. please tell me where I am wrong.
ss(1)=0;
for q=2:number+1
ss(q)=ss(q-1)+facility_units(q-1);
end
ss
dist=zeros(tu,tu);
for i=1:number
for j=1:number
if di(i,j)~=0 && i~=j && i
shweta89
27-Mar-15 13:04pm
View
Deleted
number=4
facility_units=[4 3 2 1]
tu=10
%d = randi(7,1) % The diagonal values
d=7;
t = triu(d.*rand(number),1) % The upper trianglar random values
M = t+t.'
di=zeros(number,number); % initialize with zeros
for i=1:number
for j=1:number
if M(i,j)>0 && M(i,j)<0.49 %if values lies between 0 to 0.49 than set it to 1
M(i,j)=1;
end
di(i,j)=round(M(i,j)); % round off the value to get distance matrix
end
end
di
tt=facility_units(1);
sss(1)=tt;
for q=2:number
sss(q)=sss(q-1)+facility_units(q);
end
sss
ss(1)=0;
for q=2:number+1
ss(q)=ss(q-1)+facility_units(q-1);
end
ss
dist=zeros(tu,tu);
for i=1:number
for j=1:number
if di(i,j)~=0 && i~=j && i
shweta89
27-Mar-15 13:03pm
View
I have already make a code for this but not getting the exact output. I tried it number of times. can you please check it and tell me where I am doing wrong thing. the code is in MATLAB. but the logic of C and MATLAB is same to make this.
number=4
facility_units=[4 3 2 1]
tu=10
d=7;
t = triu(d.*rand(number),1) % The upper trianglar random values
M = t+t.'
di=zeros(number,number); % initialize with zeros
for i=1:number
for j=1:number
if M(i,j)>0 && M(i,j)<0.49 %if values lies between 0 to 0.49 than set it to 1
M(i,j)=1;
end
di(i,j)=round(M(i,j)); % round off the value to get distance matrix
end
end
di
tt=facility_units(1);
sss(1)=tt;
for q=2:number
sss(q)=sss(q-1)+facility_units(q);
end
sss
ss(1)=0;
for q=2:number+1
ss(q)=ss(q-1)+facility_units(q-1);
end
ss
dist=zeros(tu,tu);
for i=1:number
for j=1:number
if di(i,j)~=0 && i~=j && i
shweta89
27-Mar-15 13:01pm
View
Deleted
I have already make a code for this but not getting the exact output. I tried it number of times. can you please check it and tell me where I am doing wrong thing. the code is in MATLAB. but the logic of C and MATLAB is same to make this.
number=4
facility_units=[4 3 2 1]
tu=10
d=7;
t = triu(d.*rand(number),1) % The upper trianglar random values
M = t+t.'
di=zeros(number,number); % initialize with zeros
for i=1:number
for j=1:number
if M(i,j)>0 && M(i,j)<0.49 %if values lies between 0 to 0.49 than set it to 1
<!--0--> M(i,j)=1;
end
di(i,j)=round(M(i,j)); % round off the value to get distance matrix
end
end
di
tt=facility_units(1);
sss(1)=tt;
for q=2:number
sss(q)=sss(q-1)+facility_units(q);
end
sss
ss(1)=0;
for q=2:number+1
ss(q)=ss(q-1)+facility_units(q-1);
end
ss
dist=zeros(tu,tu);
for i=1:number
for j=1:number
if di(i,j)~=0 && i~=j && i<j for="" l="ss(j-1)+1:ss(j)" m="ss(j)+1:ss(j+1)" dist(l,m)="di(i,j);" end="" dist<="" div=""> <div id="EditDialogPlaceholder"></div> <div id="ReplyDialogPlaceholder"></div>
shweta89
28-Nov-12 13:52pm
View
i am talking about SAP software i.e. SAP V11 or v12 use to make structure in civil engineering ..
shweta89
23-Nov-12 12:03pm
View
i want to change in this code ..
Dim objRandom As New System.Random( _
CType(System.DateTime.Now.Ticks Mod System.Int32.MaxValue, Integer))
like in this code system.Int32.MaxValue will take integer value.. but i want decimal value ..so what should i do ?
shweta89
2-Nov-11 11:46am
View
thanks a lot dear...u make work easy..:)
shweta89
13-Oct-11 10:01am
View
still this is not working ....i m pasting my code ok
see whats d problem...this is cramer's rule to solve sytem of linear equation.
form1..
Public Class Form1
'to clear the element
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf (ctl) Is TextBox Then
ctl.Text = ""
lblres.Visible = False
p.Label10.Text = "" : p.Label11.Text = "" : p.Label12.Text = ""
px.Label10.Text = "" : px.Label11.Text = "" : px.Label12.Text = ""
py.Label10.Text = "" : py.Label11.Text = "" : py.Label12.Text = ""
pz.Label10.Text = "" : pz.Label11.Text = "" : pz.Label12.Text = ""
p.a11 = "0" : p.a12 = "0" : p.a13 = "0"
p.a21 = "0" : p.a22 = "0" : p.a23 = "0"
p.a31 = "0" : p.a32 = "0" : p.a33 = "0"
px.a11 = "0" : px.a12 = "0" : px.a13 = "0"
px.a21 = "0" : px.a22 = "0" : px.a23 = "0"
px.a31 = "0" : px.a32 = "0" : px.a33 = "0"
py.a11 = "0" : py.a12 = "0" : py.a13 = "0"
py.a21 = "0" : py.a22 = "0" : py.a23 = "0"
py.a31 = "0" : py.a32 = "0" : py.a33 = "0"
pz.a11 = "0" : pz.a12 = "0" : pz.a13 = "0"
pz.a21 = "0" : pz.a22 = "0" : pz.a23 = "0"
pz.a31 = "0" : pz.a32 = "0" : pz.a33 = "0"
End If
Next
End Sub
Private Sub btnsolve_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsolve.Click
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf (ctl) Is TextBox Then
If ctl.Text.Length = 0 Then
' ErrorProvider1.SetError(ctl, "Please Enter the text")
MsgBox("Please Enter the text ", MsgBoxStyle.Information, "Note")
ctl.Focus()
Exit For
End If
End If
Next
Dim ctl2 As Control
For Each ctl2 In Me.Controls
If TypeOf (ctl2) Is TextBox Then
If Not ctl2.Text = "" Then
lblres.Visible = True
p.a11 = txtx1.Text : p.a12 = txty1.Text : p.a13 = txtz1.Text
p.a21 = txtx2.Text : p.a22 = txty2.Text : p.a23 = txtz2.Text
p.a31 = txtx3.Text : p.a32 = txty3.Text : p.a33 = txtz3.Text
p.calculate = True
px.a11 = txtres1.Text : px.a12 = txty1.Text : px.a13 = txtz1.Text
px.a21 = txtres2.Text : px.a22 = txty2.Text : px.a23 = txtz2.Text
px.a31 = txtres3.Text : px.a32 = txty3.Text : px.a33 = txtz3.Text
px.calculate = True
py.a11 = txtx1.Text : py.a12 = txtres1.Text : py.a13 = txtz1.Text
py.a21 = txtx2.Text : py.a22 = txtres2.Text : py.a23 = txtz2.Text
py.a31 = txtx3.Text : py.a32 = txtres3.Text : py.a33 = txtz3.Text
py.calculate = True
pz.a11 = txtx1.Text : pz.a12 = txty1.Text : pz.a13 = txtres1.Text
pz.a21 = txtx2.Text : pz.a22 = txty2.Text : pz.a23 = txtres2.Text
pz.a31 = txtx3.Text : pz.a32 = txty3.Text : pz.a33 = txtres3.Text
pz.calculate = True
'Result
lblres.Text = "x = " & px.results / p.results & " y = " & py.results / p.results & " z = " & pz.results / p.results
End If
End If
Next
End Sub
End Class
det...
Public Class det
Dim b As Boolean = False
Dim result As String
Private Sub Label9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnok.Click
Dim step2, step3, step4 As String
step2
shweta89
10-Oct-11 9:07am
View
@andre thats not a homework actually i don't know .NET well ...i m just trying to learn it i know c and c++ well..
shweta89
10-Oct-11 8:37am
View
yeah i have a problem in assigning array element to another array detx(2)(3) ..as u can in code written above...
Show More