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

oltre un anno fa | 0

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 1

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

oltre un anno fa | 1

| accettato

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

oltre un anno fa | 1

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 1

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 1

| accettato

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 1

| accettato

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

quasi 5 anni fa | 1

| accettato

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

quasi 5 anni fa | 0

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

circa 5 anni fa | 1

| accettato

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

circa 5 anni fa | 1

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

circa 5 anni fa | 1

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 0

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

circa 5 anni fa | 1

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 2

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 0

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

circa 5 anni fa | 1

| accettato

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

circa 5 anni fa | 1

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

circa 5 anni fa | 0

| accettato

Carica altro