- https://www.mathworks.com/matlabcentral/answers/818305-from-workspace-block-error-time-values-must-be-a-real-vector
- https://www.mathworks.com/matlabcentral/answers/1562596-inputting-data-from-my-workspace-into-simulink
i want to try to convert the duty cycle data into derive cycle. For that i'm creating a variable in workspace time_power. i'm getting this error.
1 次查看(过去 30 天)
显示 更早的评论
Error:Invalid workspace variable 'time_power' specified as workspace input in 'drive_cycle_current/From Workspace'. Time values must be a real vector.
0 个评论
回答(1 个)
Bhanu Prakash
2024-7-9
Hi Garvit,
Though you have mentioned the error message that you are encountering, it is still not clear of the approach/code that you are using to create a time vector.
Looking at the error mesage, it seems that the format of the data you are trying to import doesn't match with what Simulink expects. To create and load data that includes time values using the 'From Workspace' block, the data type for the time values must be double and the time values should be non-decreasing.
To further understand how to create and load time values using the 'From Workspace' block, you can refer to the following documentation:
Here are a couple of MATLAB answers with similar error messages:
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Energy Storage 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!