Quantcast
Channel: PTC Community : All Content - Programming & Extending Mathcad
Viewing all 680 articles
Browse latest View live

help! - 3d plot

$
0
0

I need to plot a 3d truss

Please. See the attachment file


Modify programming code

Modify programming code

$
0
0

I need to modify programming code

Please. See the attachment file

Gaussian fit to several peaks

$
0
0

Hello All,

My data has several peaks and I want to fit  Gaussian function to each one to obtain the position of each peak's apex. Could you please let me have the idea how to do this?  My program should find the peaks and fit the Gaussian to each one.

 

 

Thank you very much in advance.

Payman

matrix analysis

$
0
0

Hello,

 

on the left side of my mathcad sheet is a pdf copy past shots. on the right side i am trying to follow the same steps. please scroll down to the red arrow. i am not sure why the results on the right side does not match what is the screen shot on the left side for Ke1,Ke2,Ke3. the other two red arrows are below. Thanks!

two signals max/min coincide

$
0
0

Hello All,

 

I have two oscillating signals. I want to find the position where

 

1) The signals maxima coincide with each other (the best match),

2) The signals minima coincide with each other (the best match),

3) One signal's max coincides with another signal's min.

 

Such points are indicated on the attached graph. Would you please help me with programming this step?

 

Thank you very much in advance.

 

Payman

"localmax" function- Mathcad 14

$
0
0

Hello All,

I am using Mathcad 14. Unfortunately the function "localmax" is not working with this version. Do you know how I can add this function?

the edit of trail file

$
0
0

hi, guys

here is my problem.

I want to connect pro/e with modefrontier by using trail file. So I first define some parameters in pro/e. However, in the trail file, there shows no parameter name just some numbers.

Does anyone know how to modify trail file, in order to define parameters?

here is a part of my trail file:

~ Command `ProCmdMmParams`

~ Activate `relation_dlg` `ParamsPHLay.TBAddParam`

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

5505140

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

4718696

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

524296

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

524296

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

4259937

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

5111918

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

4653159

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

3211313

~ Disarm `relation_dlg` `ParamsPHLay.ParTable` \

2  `new_added_row` `name`

~ Activate `relation_dlg` `ParamsPHLay.TBAddParam`

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

5898362

~ Key `relation_dlg` `ParamsPHLay.ParTable` \

3211313

~ Disarm `relation_dlg` `ParamsPHLay.ParTable` \

2  `new_added_row` `name`

~ Activate `relation_dlg` `PB_OK`

!Undo: added rec_id 327 type 5204

!


Easy question for Mathcad Users

$
0
0

I am very beginner user for MathCAD 15.

 

I have a trouble that I cannot solve myself.

 

What am I doing wrong in this code ?

data sets/function

$
0
0

Hello,

I have 2 sets of data, X and Y, with the same length.

How can I express one set as a function of the other one: Y(X)

Thank you.

Creating a FOR loop including recalculate and export?

$
0
0

Hi folks!

 

I'm having a following problem with finding an effective way to export calculation results from Mathcad:

 

There's two things I would like to do. Firstly, I'd want to create mechanism that calculates the worksheet several times in a row and exports results from file output box to a new file (or new row) in between the calculation rounds to save the results from each round. My calculations include random variables so the results vary between rounds even without changing the start values. Manually this is easy to do by ctrl+F9 (calculate worksheet), and then opening the excel file attached to file output box and copying the results into a new row of another excel table (or save as to save into individual file). Also this would be possible to do with a for loop in Mcad for simple cases. The problem is that my calculations are too complicated to be put in a default for loop, so I guess I have to create my own with VB.

 

When the for loop works for the whole calculation, the second thing would be to change some variables between rounds to see the effect of variation in results. I'm just a rookie in programming but the idea is so basic I'm optimistic for finding the solution here. Basicly what I need is following:

 

For i = 1...10:

    

     Variable1 := i

     Calculate Worksheet

     Export to results.xls row i (or results_i.xls)

 

I hope you got the point and can help me with this since I don't seem to solve this by myself. One calculation round takes about 5 mins so I would rather run multiple rounds in a row than manually save the results every 5 mins for about 100 rounds.

Error in Inserting Pictures - Win8 ?

$
0
0

I have tried the same pathway in win7 and i had no problem, however while trying the same steps in win8 i cannot insert picture.

 

I am going to make matrix analysis of picture.

 

I am selecting insert picture but the box is not the same which formates in win7. (First picture)

 

On the other way, I am trying to copy picture and paste on mathcad document, but also mathcad sees that file as a HTML document.

 

As a result, i cannot insert picture to my mathcad document.

 

In the screenshots you will understand what I mean.

 

Thank you.

 

edit :

I have tried to open a document which has picture in it, and i get this error. (last picture 3.png)

Pivot table values from excel inserted to a matrix

$
0
0

Hello,

 

please see attachment . i am manually copying and pasting each value from the pivot table  into the matrix. is there an easier way to automate this process? the size of the table can be any square table meaning  number of rows= number of columns.Thanks!

More than 1 output for one function

$
0
0

As you can see in the picture,

i want to extract the value of white and black, however when I write  black=   of course it says placeholder is empty because the code "black" was identified in the function.

 

If I seperate the statemets in two functions I can see the white and black counters but i wanna make the whole process in one function.

 

Thank you.

Extracting data from tables

$
0
0

Greetings to all, my problem is as follows:

Having a main table, I require to extract certain values ​​in the same to form a new matrix only data of interest. As a picture is worth a thousand words, the following figure try to explain what I try to do:

 

IMAGENNN.jpg

I have tried to get it using programming, but as I am new to using Mathcad I think I have tangled more and I get an error:

MATHCAD.jpg

Hope you can help me, thank you very much for the help


append/excel

$
0
0

Hello,

My program calculates several series of input data. I want to store all the outputs in an excel file. Is there similar function to "Appendprn" for excel file?

Thank you.

Scrap Prime 4 and give us Mathcad 16

$
0
0

The only thing that people seem to like about Mathcad Prime is its better unit handling. If my assertion is true and it is also true that Prime and MC15 are still using the Mathcad 12 kernel why not just incorporate the better unit handling in Mathcad 15?  What other benefits does Prime have over MC15? If PTC. believes a MS ribbon interface is cool that's fine and they are at liberty to have ribbon version which they can use internally if that keeps them happy. So here is my solution for PTC. Get 2 good programmers for 2 months. One programmer works on incorporating the new unit handling into MC15 and the other works on incorporating the new numerical solvers. Allow a month for quality assurance and ship Mathcad 16 on August 1 2014. Every Mathcad user is happy PTC is happy also because it can continue to play with its toy version of Mathcad Prime internally and let the users concentrate on what should be in the Mathcad 17. Afterall without us there is no Mathcad, yet PTC never asks its users what they want in the program. Are PTC software builders or demolishes users have the right to decide who they are employing, we pay their wages, after all we are PTC clients but I think they have forgotten that. It's about time they put away their toys and grow up.

 

I Hope others feel the same.

 

regards Mark

Need help recovering a corrupted MATHCAD 15 file

$
0
0

I have been working on this since last two days and just completed my work and then suddenly Mathcad crashes and gives me an error that the contents of the file have been corrupted.

 

I tried everything, used the recovery file also but cant recover. I just dont know what to do.

 

I would really appreciate if anyone can help me with this.

 

Thanks

 

P.S. the file is in attachment.

cos(pi/2) does not equal 0...why?

$
0
0

I am performing some martrix algebra.

When I ask Mathcad what cos(pi/2) equals it says "6.123X10^-17". How do I get this value to revert to 0, which is the true value?

 

Thank you

 

Jamie

solve block/ function

$
0
0

Hello All.

Within my program, there is a solve block  that finds some parameters with given guess values. For repeating the calculations, the guess values must be changed according to the new set of inputs.

Is there any way to define a local function that automatically change the guess values and use this local function inside the main body of my program?

 

the attached file contains the solve block that I need to express as a local function.

 

thank you in advance.

Viewing all 680 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>