From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab -> loop would not work with the written function

Can anyone tell me why this error occurs, and how it can be rectified?

Thanks!

0 Kudos
Message 1 of 4
(4,426 Views)

I'm pretty sure the code for the function g(x,c), where c is a constant value to be given its value via input, is correct. 

0 Kudos
Message 2 of 4
(4,423 Views)

The reason it didn't work was because the name of the code was saved as f.m, which contradicts with the g(x,c) name of the written function.

 

For some reason matlab must have the name of function written to be the same its name as the name of the code that is saved

0 Kudos
Message 3 of 4
(4,419 Views)

You probably should ask these question in a matlab specific forum. It has nothing to do with Labwindows/CVI or any NI product and seems completely offtopic here.

0 Kudos
Message 4 of 4
(4,408 Views)