Answered
How to fit 3D surface to datasets (excluding specific datapoints) without Curve Fitting Toolbox
I would recommend using either: rmmissing to remove NaN values, but be sure to remove the matching data points from your XY arr...

1 year ago | 0

| accepted

Answered
How to plot specific graph scale?
In addition to the comment from @Dyuman Joshi, for the y-axis you could also use ylim("tight") if you want to let Matlab figur...

1 year ago | 0

Answered
How to print variable and its value in the same line on Command Window
To my knowledge, there is way to modify such line breaks in the output of a command as you're describing. But, depending on your...

1 year ago | 0

| accepted

Answered
How can i create movable handles in Matlab graph to find data at the intersection of the handle and the graph?
If it fits your appication you could use stackedplot(): X = 0:0.1:4*pi(); Y = sin(X); stackedplot(X',Y', "DisplayLabels", "si...

1 year ago | 1

Answered
How to get data from a circular line on a 2D array in the anti-clockwise direction?
sz = 1024; % CCD array size A = peaks(sz); % some data from the CCD x0 = 512; % known origin X y0 = 512; % known origin Y ...

1 year ago | 1

| accepted

Answered
Hot plate PID control according to measured graphs
Control Systems - MATLAB & Simulink (mathworks.com)

1 year ago | 1

Answered
Is there anyway to create a plot with a discontinued x-axis, where the one set of data is linked to the left y-axis, and a second data is linked to right y-axis?
Glad I was able to help in the comments. Please accept this answer for future generations. From above comments: x_R1 = 0:10; ...

1 year ago | 0

| accepted

Answered
Matching Values from one Table to Another
Veh = [2007; 1265; 1266; 1269]; FirstVID = [1881; 1269; 2007]; SecondVID = [1892; 2188; 1266]; T = table(FirstVID, SecondVID)...

1 year ago | 1

Answered
Plotting Trajectories on graph
Because your results will be arrays of varying size you should consider using cells or structures to store the results. In this ...

1 year ago | 0

| accepted

Answered
How can I plot three columns of a dataset to produce an image or a map?
The data needs to be reshaped. Here are a few different plotting options, depending no how you went to represent the data. D =...

1 year ago | 1

| accepted

Answered
How to find the angle of a line with respect to plot window
Try the PlotBoxAspectRatio property. plot([0:10], [0:10]) ar = get(gca, "PlotBoxAspectRatio") r = atand(ar(2)/ar(1)) % This...

1 year ago | 0

| accepted

Answered
how to perform excel goal seek in Matlab?
Simply rearrange the equations to solve for I_b when h=0, then calculate teh resulting I_f. EC_n = 1.7; EC_in = 1; tbal = 175...

1 year ago | 1

| accepted

Answered
General variable creation question
Instead of using start_indexEMG and end_indexEMG, you could say index = [yourStartIndex : yourEndIndex]. Then use RSOL_ROI = RSO...

1 year ago | 0

| accepted

Answered
Is there a webpage similar to mathacademy to learn python?
BeginnersGuide - Python Wiki Learn Python - Free Interactive Python Tutorial Python Tutorial (w3schools.com)

1 year ago | 0

| accepted

Answered
How to get the same filtered results from signal processing tool box using functions?
To see what the Signal Analyzer is doing under the hood to your data, click the "Analyzer" tab and select "Generate Function". S...

2 years ago | 0

| accepted

Answered
Can anyone confirm whether this code will work on matlab online?
This is from ios. <</matlabcentral/answers/uploaded_files/251585/CEE86801-5B6C-4B55-BFC8-A55D70705A43.png>>

5 years ago | 1

| accepted

Answered
Select numbers from a vector under a specific condition
<https://www.mathworks.com/help/matlab/matlab_prog/find-array-elements-that-meet-a-condition.html>

5 years ago | 0

Answered
I am trying to plot my spline with clamped conditions and I am not sure why it is not letting me plot
%% clamped boundary conditions -0.5 to 0.5 t = [160 180 195 225 250 280 300]; y = [78.3 81.4 84.5 85.1 89.3 91.7 94.8]; cs =...

5 years ago | 1

| accepted

Answered
How to arrange time series data into yearly groups?
Start by importing your data with either readtable or readtimetable (timetable is more powerful when working with dates, but can...

5 years ago | 1

Answered
generating 4 d tuple
Matlab doesn't have a tuple class, but uses arrays. If I'm understanding you, you want to end up with a 4x100 array. The mos...

5 years ago | 1

Answered
Change plot properties generated from a curve fitting
Since the object contains 2 lines try calling them specifically. For example: h(1).Marker='none' h(2).Color=[.5 .5 .5]

5 years ago | 0

| accepted

Answered
stackedplot without yticklabels?
No. stackedplot is missing a lot of common property controls. Hopefully they continue to develop this function in future release...

5 years ago | 0

Answered
default_getDatatipText.m MATLAB R2014+
(courtesy of stackoverflow) add the following to your startup.m file: set(0,'defaultFigureCreateFcn',@(s,e)datacursorextra(s))...

5 years ago | 1

Answered
How can select apecific rows from text files
% Read all your data into a cell array. 'Delimiter','' means to import % everthing into one column, which I believe is better f...

5 years ago | 0

| accepted

Answered
recall updated vector from a loop
nLoops = 5; % number of times to loop nElem = 18; % number of elements in each vector (let's use it as long as you know what it...

5 years ago | 2

Answered
How to detect if a plot has already existed?
Try this... (note I'm using "exist" instead of "isexist") clear % I'm starting with no 'h1'. This checks the "False" condition ...

5 years ago | 0

| accepted

Answered
How can I use a vector inside an @fun?
Assign 'a' first, then assign 'fun'. In your application I don't believe you can do it the other way around.

5 years ago | 0

Answered
fitting line for the first part of the graph
% let's say you want to fit the first 10 elements ROI = (1:10); % I'm just sorting your data by X so it plots from left to ...

5 years ago | 1

| accepted

Answered
read a matrix from a text file
A = readmatrix('output1.txt'... % filename ,'LineEnding',{']'}... % defines ']' as the end of each row instead of a carriag...

5 years ago | 1

Load more