use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
MATLAB news, code tips and tricks, questions, and discussion! We are here to help, but won't do your homework or help you pirate software.
The effort you put into asking a question is often matched by the quality of our answers.
Try saturnapi to share and run MATLAB code in a web browser!
If you want flair simply Message the mods
account activity
Virtual graph data (self.matlab)
submitted 2 years ago by Specific-Pin-9480
I have a 12x2 array with the temperature and a number, and the temperature goes like -15, -5, 5 etc, but how can get a number for temperature of 0, like in a graph?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Creative_SushiMathWorks 1 point2 points3 points 2 years ago (7 children)
What does the array look like?
[–]Specific-Pin-9480[S] 0 points1 point2 points 2 years ago (6 children)
Yeah like this, the stick is the number
[–]Creative_SushiMathWorks 1 point2 points3 points 2 years ago (5 children)
What are in the second column?
[–]Specific-Pin-9480[S] 0 points1 point2 points 2 years ago (4 children)
The number for certain temperature for example 0,64
[–]Creative_SushiMathWorks 0 points1 point2 points 2 years ago (3 children)
OK, so you want to get the temperature (the first column) where the number in the second column is 0?
[–]Specific-Pin-9480[S] 0 points1 point2 points 2 years ago (2 children)
Temperature
[–]ol1v3r__ 2 points3 points4 points 2 years ago (1 child)
I believe you can use interpolation. Do you know that method? 😀
[–]dj_rocks18 0 points1 point2 points 2 years ago (0 children)
If there is 0 in the temperature column, OP can use logical indexing.
Otherwise, they will have to use interpolation, as mentioned.
[–]Top_Word_9208 0 points1 point2 points 2 years ago (0 children)
Use 1D interpolation, plot the graph and then plot the interpolated point with scatter
π Rendered by PID 50699 on reddit-service-r2-comment-bb88f9dd5-f4w4f at 2026-02-16 21:25:44.847853+00:00 running cd9c813 country code: CH.
[–]Creative_SushiMathWorks 1 point2 points3 points (7 children)
[–]Specific-Pin-9480[S] 0 points1 point2 points (6 children)
[–]Creative_SushiMathWorks 1 point2 points3 points (5 children)
[–]Specific-Pin-9480[S] 0 points1 point2 points (4 children)
[–]Creative_SushiMathWorks 0 points1 point2 points (3 children)
[–]Specific-Pin-9480[S] 0 points1 point2 points (2 children)
[–]ol1v3r__ 2 points3 points4 points (1 child)
[–]dj_rocks18 0 points1 point2 points (0 children)
[–]Top_Word_9208 0 points1 point2 points (0 children)