回答済み

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

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年以上 前 | 0

| 採用済み

回答済み

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

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年以上 前 | 0

回答済み

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

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年以上 前 | 0

| 採用済み

回答済み

In this code, how can I add a time function for how long it takes to draw the graph?

tic plot(t,v) toc

In this code, how can I add a time function for how long it takes to draw the graph?

tic plot(t,v) toc

1年以上 前 | 0

回答済み

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

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年以上 前 | 1

回答済み

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

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年以上 前 | 1

| 採用済み

回答済み

Hot plate PID control according to measured graphs

Control Systems - MATLAB & Simulink (mathworks.com)

Hot plate PID control according to measured graphs

Control Systems - MATLAB & Simulink (mathworks.com)

1年以上 前 | 1

回答済み

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

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年以上 前 | 0

| 採用済み

回答済み

Matching Values from one Table to Another

Veh = [2007; 1265; 1266; 1269]; FirstVID = [1881; 1269; 2007]; SecondVID = [1892; 2188; 1266]; T = table(FirstVID, SecondVID)...

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年以上 前 | 1

回答済み

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

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年以上 前 | 0

| 採用済み

回答済み

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

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年以上 前 | 1

| 採用済み

回答済み

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

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年以上 前 | 0

| 採用済み

回答済み

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

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年以上 前 | 1

| 採用済み

回答済み

General variable creation question

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

General variable creation question

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

1年以上 前 | 0

| 採用済み

回答済み

Is there a webpage similar to mathacademy to learn python?

BeginnersGuide - Python Wiki Learn Python - Free Interactive Python Tutorial Python Tutorial (w3schools.com)

Is there a webpage similar to mathacademy to learn python?

BeginnersGuide - Python Wiki Learn Python - Free Interactive Python Tutorial Python Tutorial (w3schools.com)

1年以上 前 | 0

| 採用済み

回答済み

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

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年 前 | 0

| 採用済み

回答済み

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

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年弱 前 | 1

| 採用済み

回答済み

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>

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年弱 前 | 0

回答済み

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

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年弱 前 | 1

| 採用済み

回答済み

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

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年弱 前 | 1

回答済み

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

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年弱 前 | 1

回答済み

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]

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年弱 前 | 0

| 採用済み

回答済み

stackedplot without yticklabels?

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

stackedplot without yticklabels?

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

5年弱 前 | 0

回答済み

default_getDatatipText.m MATLAB R2014+

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

default_getDatatipText.m MATLAB R2014+

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

5年弱 前 | 1

回答済み

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

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年弱 前 | 0

| 採用済み

回答済み

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

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年弱 前 | 2

回答済み

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

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年弱 前 | 0

| 採用済み

回答済み

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.

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年弱 前 | 0

回答済み

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

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年弱 前 | 1

| 採用済み

回答済み

read a matrix from a text file

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

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年弱 前 | 1