Ajpaezm in MATLAB Answers
최근 활동: 2018년 12월 20일

I have a Simulink block that calls a user-defined function. This function calls another function: thingspeakread.m (provided by the ThingSpeak Official Toolbox). From here, I want two outcomes. Data (numeric type, vector), and timestamps (strings, vector). [data,timestamps] = thingSpeakRead(___) Now, I'm able to get the values of "Data" into a Scope without much of an issue (using coder.extrinsic('thingSpeakRead') and preallocating the variable to store such points). The issue I have is this: I need to make more sense of the data visualization, and for that purpose, I need to plot this "Data" against the information displayed in the timestamps vector. The timestamps varies per minute only. What I'll try to do, but doesn't satisfies me a lot: Convert the timestamp into a numeric value using datenum() using the format for 'mm/dd/yyyy HH:MM:SS' This option sends back a huge number (which can be used to plot Data vs. Time indeed, but it doesn't look 'good' because the number is just too big and I don't like it). I have thought about these too: Convert date to Julian Date type. Convert Hours, Minutes and Seconds into 3 different arrays. But I don't see that getting me where I want (which is to plot Data vs. Time, being able to spot easily that the numbers displayed for "Time" are corresponding to an specific HH:MM:SS of a day). Is there anything you can guys suggest, please? Thanks a lot in advance! Edit 1: Can I use something like datetick() in Simulink?

ThingSpeak 정보

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.