Execute mathcad from Matlab

55 ビュー (過去 30 日間)
Thomas
Thomas 2017 年 3 月 4 日
コメント済み: Walter Roberson 2024 年 1 月 30 日
Hello,
We want to open, change variable and run a mathcad sheet from Matlab.
Is that possible and already exist ?.
Thanks
  6 件のコメント
Marie Carmen Landivar Guartatanga
Marie Carmen Landivar Guartatanga 2019 年 9 月 19 日
John, you had be surprised. At least in my branch of work, a teacher did a survey, and 7 out of 10 companies used mathcad. Only one used matlab. It depends really. My career is full of calculations with long formulas. Yes, they can be done in matlab, but mathcad offers the visual part, plus you can do simple algoriths if needed. Though, programming in mathcad is a pain compared to matlab. It depends a lot in what you are working at.
Kevin Merene
Kevin Merene 2021 年 7 月 7 日
If I wanted to get the values of an entire array rather than just a lone integer, how would I do so?

サインインしてコメントする。

回答 (2 件)

Kapil Gupta
Kapil Gupta 2021 年 7 月 8 日
I assume you want to know how you can execute mathcad from MATLAB. The following links have similar queries, you can check these out:
  1 件のコメント
Brian Godfrey
Brian Godfrey 2021 年 8 月 10 日
編集済み: Walter Roberson 2021 年 8 月 10 日
I am having an issue with MATLAB 2020a interfacing with Mathcad prime 7
I tried using your first link but I ran into an issue when trying to open a file
>> h = actxserver('Mathcad.Application')
h =
COM.Mathcad_Application
>> h.invoke
Quit = void Quit(handle, Variant(Optional))
CloseAll = void CloseAll(handle, Variant(Optional))
SetOption = void SetOption(handle, MCAppOption, Variant)
GetOption = Variant GetOption(handle, MCAppOption)
GetStringProperty = ustring GetStringProperty(handle, ustring)
GetIntProperty = int32 GetIntProperty(handle, ustring)
>> h.methods
Methods for class COM.Mathcad_Application:
CloseAll Quit delete interfaces propedit set
GetIntProperty SetOption deleteproperty invoke release
GetOption addproperty events load save
GetStringProperty constructorargs get move send
>> h.worksheet.invoke
Add = handle Add(handle)
Item = handle Item(handle, Variant(Optional))
Open = handle Open(handle, ustring)
Remove = void Remove(handle, Variant)
AddFromTemplate = handle AddFromTemplate(handle, ustring)
>> h.worksheet.methods
Methods for class Interface.CF1EB3FD_6EAB_4D71_8A1B_247F85CD2F66:
Add Open delete get release
AddFromTemplate Remove deleteproperty invoke saveobj
Item addproperty events loadobj set
>> h.worksheet.Open([pwd,'\NewDesignInputs.mcdx'])
Error using Interface.CF1EB3FD_6EAB_4D71_8A1B_247F85CD2F66/Open
Invoke Error, Dispatch Exception:
Description: Failed to open document.
any help would be greatly appreciated

サインインしてコメントする。


mizomov
mizomov 2024 年 1 月 30 日
  1 件のコメント
Walter Roberson
Walter Roberson 2024 年 1 月 30 日
I am not at all certain, but that appears to be asking to perform certain steps within MathCad or MATLAB.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by