Skip to main content
1-Visitor
November 17, 2014
Solved

I got scalar error continually. could you give advice

  • November 17, 2014
  • 6 replies
  • 2847 views

I don't know well wht I got error cotinually.

I am shy to post often.

Best answer by Werner_E

You need to user vectorization! Thats a special Mathcad operator:

1.png

Excerpt from the help:

2.png

6 replies

Werner_E
25-Diamond I
November 17, 2014

jinsuk Lee wrote:

I don't know well wht I got error cotinually.

Which error?

The first error I see is because of a nonexistent Excel Sheet you try to read from.

You provided "nrel aero data.xlsx" but "\nrel_r,c,t.xlsx" is missing.

jlee-21-VisitorAuthor
1-Visitor
November 17, 2014

I forgot to attach.

thank you

dgdgdgdgf.PNG

And I got error here

I got massage about scalar error here

Werner_E
25-Diamond I
November 17, 2014

r.c is a vector but you compare that argument to a scalar in your function CL. This obviously can't work.

If you want the result for every element in r.c collected in a result vector, you have to use the vectorization operator over CL(.....).

jlee-21-VisitorAuthor
1-Visitor
November 17, 2014

So you mean that I need to work to use "vector"?