cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

I got scalar error continually. could you give advice

jlee-2
1-Newbie

I got scalar error continually. could you give advice

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

I am shy to post often.

1 ACCEPTED SOLUTION

Accepted Solutions
Werner_E
24-Ruby V
(To:jlee-2)

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

1.png

Excerpt from the help:

2.png

View solution in original post

6 REPLIES 6
Werner_E
24-Ruby V
(To:jlee-2)

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-2
1-Newbie
(To:jlee-2)

I forgot to attach.

thank you

dgdgdgdgf.PNG

And I got error here

I got massage about scalar error here

Werner_E
24-Ruby V
(To:jlee-2)

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(.....).

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

Werner_E
24-Ruby V
(To:jlee-2)

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

1.png

Excerpt from the help:

2.png

Okay I got it.

Good information for me. thank you!!

Top Tags