Respondida
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...

casi 2 años hace | 0

Respondida
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...

casi 2 años hace | 0

| aceptada

Respondida
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...

casi 2 años hace | 1

Respondida
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 ...

casi 2 años hace | 1

| aceptada

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

casi 2 años hace | 1

Respondida
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; ...

casi 2 años hace | 0

| aceptada

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

casi 2 años hace | 1

Respondida
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 ...

casi 2 años hace | 0

| aceptada

Respondida
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 =...

casi 2 años hace | 1

| aceptada

Respondida
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...

casi 2 años hace | 0

| aceptada

Respondida
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...

casi 2 años hace | 1

| aceptada

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

casi 2 años hace | 0

| aceptada

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

casi 2 años hace | 0

| aceptada

Respondida
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...

más de 2 años hace | 0

| aceptada

Respondida
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>>

alrededor de 5 años hace | 1

| aceptada

Respondida
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>

alrededor de 5 años hace | 0

Respondida
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 =...

alrededor de 5 años hace | 1

| aceptada

Respondida
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...

alrededor de 5 años hace | 1

Respondida
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...

más de 5 años hace | 1

Respondida
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]

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 1

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 2

Respondida
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 ...

más de 5 años hace | 0

| aceptada

Respondida
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.

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 1

Respondida
How do you determine the average values in second column of an excel data corresponding to a particular range of values in first column ?
Here's another approach. Because of the size of your dataset I would recommend avoiding loops. the accumarray function applies s...

más de 5 años hace | 0

| aceptada

Cargar más