回答済み
How can I use Excel sheet names as variables in the area (x, y) syntax?
You just go ahead and do it. For example, rng(655321) filename = 'test.xlsx'; for K = 1 : 3 sheetname = "s" + randi(6553...

9ヶ月 前 | 1

| 採用済み

回答済み
MATLAB ignores a trisurf's FaceVertexAlphaData property
https://www.mathworks.com/help/matlab/ref/matlab.graphics.primitive.patch-properties.html#buduav0-1-FaceVertexAlphaData Note ...

9ヶ月 前 | 0

| 採用済み

回答済み
How can I print the mean and standard deviation in the histogram plot?
You can text the information into place. Or you can put it into a title or subtitle

9ヶ月 前 | 1

回答済み
I need to repeat a periodic signal
Hint: syms t F(t) = piecewise(-2 <= t & t < 0, 1, 0 <= t & t < 1, 2, 1 <= t & t < 2, 3) fplot(F, [-10 10]); ylim([-1 4]) G =...

9ヶ月 前 | 0

回答済み
How can I convert handle function to a string
f=@(x) 2*x+1 syms x solve(f(x))

9ヶ月 前 | 1

回答済み
How can I create a .txt files from a cellarray that is 80x1 into 80 different files with the same name with different number in the end?
for K = 1 : numel(LF) filename = "LF" + K + ".txt"; writematrix(LF{K}, filename, 'Delimiter', '\t'); end

9ヶ月 前 | 0

| 採用済み

回答済み
format number column table/array
MATLAB does not provide any way to customize how many digits are displayed for numeric arrays, other than 2 digits ( format bank...

9ヶ月 前 | 1

回答済み
How to apply a 'custom' colormap to multiple data sets including negative and positive values
You indicated that you wanted the values "around" 0 to be white. In the following code, the values between -1/2 and +1/2 are map...

9ヶ月 前 | 1

| 採用済み

回答済み
Anonymous Function : asymmetric read/write behaviour
a(1) = @(x)x{1} a(1) = @(x)x{1}.^2 + 3 a When an anonymous function appears on the left of an = then it is a request to modif...

9ヶ月 前 | 1

| 採用済み

回答済み
I want to find the width of a line...how to do?
When you have an open object -- a line that does not loop back to cross itself, and does not enclose an area -- then you can use...

9ヶ月 前 | 0

回答済み
How to code a ramp function?
t = linspace(tmin,tmax,tstep); t is a vector. if t<=4 MATLAB treats that as equivalent to if all(t<=4) and the body of the...

9ヶ月 前 | 0

| 採用済み

回答済み
I can't get my function to work or print right
The values are not below 1: you have been fooled by the way the default output format x=(0:31); y=(2.^x); disp(y) forma...

9ヶ月 前 | 0

| 採用済み

回答済み
Wrong symbolic solution for trigonometry
syms x sol = solve(sin(x)/cos(x)==-3.0) sola = rewrite(sol, 'atan') simplify(sola, 'steps', 100) simplify(sola, 'steps', 5...

9ヶ月 前 | 0

| 採用済み

回答済み
how distribuite correctly array in struct
%sample data Sis = struct('dailyprof', {19, [3 11], -5}) %do the actual work [Sis.dailyprof_Orig] = Sis.dailyprof; %cross-...

9ヶ月 前 | 0

| 採用済み

回答済み
Movefile and wtifc error
[ ~, ~, filename,] = fileparts(File.Name(ii).CropX) ; The third output from fileparts() is the file extensi...

9ヶ月 前 | 0

回答済み
newff function does not appear in 2023b version
No, the last time newff was documented was R2010a. The teacher needs to rewrite the lab. See fitnet and feedforwardnet https:...

9ヶ月 前 | 0

| 採用済み

回答済み
Plotting bar graph from website
First: ax = gca; ax.XRuler.TickLabelFormat = 'mmm uuuu'; would change the format to (for example) "Jan 1960" Third: You hav...

9ヶ月 前 | 0

回答済み
collect data but has inF
You should be vectorizing your code: img = (-0.18 ./ (-0.28 ./ (45.39 ./ double(img1) - 1))+1) * 5.3; The result will be somet...

9ヶ月 前 | 0

回答済み
How do I download an older release of MATLAB?
These instructions can be used for R2014a and later. Earlier releases use a different installer. Step 1: access https://www.mat...

9ヶ月 前 | 0

回答済み
How do I download MATLAB and other MathWorks products?
These instructions can be used for R2014a and later. Earlier releases use a different installer. Step 1: access https://www.mat...

9ヶ月 前 | 0

回答済み
Download Matlab 2014 a
These instructions can be used for R2014a and later. Earlier releases use a different installer. Step 1: access https://www.mat...

9ヶ月 前 | 0

回答済み
Why put a semicolon after the last input for an array?
Suppose that you are writing out several rows of value using code. You write out the initial [ and you start writing values. You...

9ヶ月 前 | 0

| 採用済み

回答済み
Plotting double vs datetime (DD-MM-YY), only the year is used from the datetime
Speculating about what you are plotting: If you plot(SNOW_GP,DATE) then your y axis has about 40 years. In order for it to be...

9ヶ月 前 | 1

回答済み
How to replace the data in tif file with my own data by matlab?
The file you have appears to be a GeoTIFF file, which you can read with readgeoraster or the older geotiffread You can write ou...

9ヶ月 前 | 1

| 採用済み

回答済み
How to omit milliseconds from a table.
dateshift TC.Time = dateshift(TC.Time, 'start', 'second');

9ヶ月 前 | 0

| 採用済み

回答済み
How to convert flowchart to MATLAB code ?
input plus mod for

9ヶ月 前 | 0

回答済み
How to make tif output file with Coordinate Reference System (CRS)?
Make sure the CRS is a "map raster reference object" and use geotiffwrite from the Mapping Toolbox.

9ヶ月 前 | 0

回答済み
The output of solve(eqn, x) is still an equation instead of number
syms G1 G2 C1 C2 K H a s G=(a*K*G1*G2)/(s^2*C1*C2+s*(C2*(G1+G2)+C1*G2*(1-K))+G1*G2) %Transfer function [G_num,G_den]=numden(G)...

9ヶ月 前 | 1

| 採用済み

回答済み
Using serial as a "trigger"
You would use serialport and configureCallback with "byte",1 . When MATLAB detects 1 (in this case) byte of data on the serial p...

9ヶ月 前 | 0

回答済み
Run a function in given time moments.
MATLAB does not support that. The closest to that is that timer supports a start delay -- so you could calculate the time diffe...

9ヶ月 前 | 1

| 採用済み

さらに読み込む