Increasing Automation with FunctionsFunction Files(4/4) Vectorizing the Comparison Function
2 次查看(过去 30 天)
显示 更早的评论
From the script (comparewithtol.mlx), call the isequaltol_vec function with a single output to determine if x and z are within 1e-5 of each other. Store the result in a logical variable called eqxz. I don't have only this activity. Thanks

7 个评论
Jansen
2024-12-19
移动:Cris LaPierre
2024-12-19
I already moved to comparewithtol.mlx still the same issue
采纳的回答
Cris LaPierre
2023-4-11
编辑:Cris LaPierre
2023-4-11
Have you noticed that there are 2 live scripts open? comparewithtol.mlx and isequaltol_vec.mlx.
You need to switch to the comparewithtol.mlx live script and enter you solution into the Task 2 code block.

更多回答(1 个)
Abhijeet
2023-4-4
Hi,
You can call the function isequaltol_vec in comparewithtol.mlx script using the below code :
eqxz = isequaltol_vec(x,z,1e-5)

Thanks
5 个评论
Cris LaPierre
2024-3-28
It appears to be working. Please share a screen shot of your attempt with the errors showing.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!