回答済み
Plot the function on graph
Consiider fplot. I have n o idea what ‘forina’ refers to, however the rest is straightforward — b = 2; y = @(x) sqrt(9*x +...

約1年 前 | 0

回答済み
Load data into the "System Identification Toolbox"
Since you have time-domain data, use the iddata function to prepare it for the identification function of your choice. (I prefe...

約1年 前 | 0

| 採用済み

回答済み
Extracting Zoomed in part of curve and finding rising Edges of data
Depending on the result you want, it might be easier to use islocalmax for this — T1 = readtable('DS0007_REDUCED.CSV') t = ...

約1年 前 | 0

| 採用済み

回答済み
How to print array value and it's undex?
It would be necessary to print the indices as well — data(6500:6503,:) = [100 105 10...

約1年 前 | 0

| 採用済み

回答済み
How to make color axis ticklabes with two end limits ([cmin cmax]) only?
One problem may be that your clim call (at least as posted) needs parentheses. This call to clim: cl = clim; should retur...

約1年 前 | 0

回答済み
Horizontal Freestream Flow Issues With Symbolic Math Toolbox
The ‘ZData’ matrix from the symbolic code appear to be transposed with respect to ‘psi_vals_fs’. This is likely due to the assu...

約1年 前 | 0

| 採用済み

回答済み
Help with making an Ellipse Area function
The only error I can see is that you need to assign something to the ‘area’ variable in your ‘EllipseArea’ function. I assign...

約1年 前 | 1

回答済み
I'm trying to plot a mat file with a 1x1 structure, but it's giving the error that "Index in position 2 exceeds array bounds. Index must not exceed 1."
When you load into a variable, that creates a structure. The information you want will then be in that structure. data1 = lo...

約1年 前 | 1

回答済み
automating many column headings in table
Perhaps something like this — A = randn(5,10); T1 = array2table(A, VariableNames=compose('physical state at step %4d',1:size(...

約1年 前 | 0

| 採用済み

回答済み
Finding specific peaks and valleys
To find specific valleys, one option might be to use the MinPeakProminence value. The prominences are the tthird output returne...

約1年 前 | 0

| 採用済み

回答済み
How can I plot multiple figures in one from multiple saved .fig files that have 2 figures but I only want 1 of them?
It would help to have at least one of the .fig files to work with. In general, use the openfig function to open each file. T...

約1年 前 | 0

| 採用済み

回答済み
How do i calculate the standard deviation from multiple csv files where i would like the standard deviation for each second?
Perhaps this — Time = datetime('now')+seconds(0:2).'; Time.Format = 'H:mm:ss'; Temperature = [20.754 19.219 19.338 20.89; 20...

約1年 前 | 0

回答済み
Convert Set of (x,y) Coordinates Into Polygon
Try this — LD = load('coordinates.mat') coordinates = LD.coords; shp = alphaShape(coordinates(:,1),coordinates(:,2),'HoleT...

約1年 前 | 2

回答済み
Compare two irregularly sampled, noisy sinusoidal signals
Use the nufft function for irregularly-sampled data. Beyond that, ‘similarity’ is a somewhat amorphous concept. I did a line...

約1年 前 | 1

| 採用済み

回答済み
Multiple regression with nonlinear variables
I am not certain what you want to do. Fitting a generalized additive model (GAM) for regression using the fitrgam function wo...

約1年 前 | 1

| 採用済み

回答済み
Converting timestamp from TDMS LabView
I did not see the .mat file before, although I did look for it. Try this — LD = load('timestamp.mat') format long timesta...

約1年 前 | 0

| 採用済み

回答済み
Variables from CSV column read incorrectly
I cannot reproduce that. Everything in your code seems to work correctly, and there are no NaN values (when run in R2024b). ...

約1年 前 | 0

回答済み
Extracting Data from Table
It would help to have your data. Lacking it, consider doing something like this — T1 = table(reshape(repmat((1:5),5,1),[],1...

約1年 前 | 0

| 採用済み

回答済み
display ‰ symbol in xlabel with latex interpreter
I think it’s hanging up on the ‘\textperthousand’ call. When I searched online, that and ‘permille’ are not generally supported...

約1年 前 | 0

回答済み
I am calling outside functions for this code, but when I am getting an error saying I have too many output arguments. I think the error is within my function LandingDistance
The reason is that ‘LandingDistance’ doesn’t return any outputs: function LandingDistance(d1, d2, v0, thetaL) You probably wa...

約1年 前 | 0

回答済み
The mesh function is not working for me in offline Matlab, but when I check this code in online Matlab, it works. What is the reason?
We do not have access to your computer. Run these from your Command Window or a script: restoredefaultpath rehash toolbox...

約1年 前 | 0

回答済み
Intel vs AMD for a new build in 2025
My preference would be a high-end Ryzen CPU, at least a 1TB SSD, and as much memory as you can manage. (I have the laptop versi...

約1年 前 | 1

回答済み
I am trying to edit an old code to simplify it but I keep getting errors. Right now I am getting the script name error even though I have followed instructions fo rnaming
Your code works here. I’m not quite sure what you’re doing. You cannot have a script name with the same name as the function...

約1年 前 | 0

回答済み
MATLAB doesn't recognize the function optimoptions
MATLAB is case-sensitive. Try this — options = optimoptions('ga') . .

約1年 前 | 0

回答済み
Trying to plot two vectors of unequal lengths on the same X and Y axes
There is probably no good way of doing this without compromising the data in some way. The way I would choose would be to to ...

約1年 前 | 0

回答済み
Calculate slope of groups of numbers in a table
Try something like this — T1 = table(reshape(repmat((1:5),5,1),[],1), sort(rand(25,1)), randn(25,1), VariableNames=["Class","X...

約1年 前 | 0

| 採用済み

回答済み
Extracting Data from Figures and Vectors
The easiest way is to use the interp1 function — clear, clc, close all EI = 29000*13400; % Flexural rigidity L = 48; % L...

約1年 前 | 0

| 採用済み

回答済み
Area of the hysteresis loops
These do not look like hysteresis curves to me. At least, I do not see any that form loops. (I am not certain what the ‘Cycle ...

約1年 前 | 0

| 採用済み

回答済み
Indexing in nonsequential order
I do not completely understand your problem, however one solution could be to use the dir function to retrieve all the files in ...

約1年 前 | 0

回答済み
Why I am I getting a row
Thge easiest way is: x1 = x1(:) since this will force ‘x1’ to be a column vector regardless of its previous orientation. ...

約1年 前 | 0

さらに読み込む