回答済み
I want to convert a text file into csv formate. How I can do that?
readtable to read the text file. writetable to write to csv (or xlsx) format. Note: this approach might have difficulty if ther...

3日 前 | 0

回答済み
Not understanding why I get "too many input arguments error" for anonymous funtion
f = daeFunction(eqns, vars, extraParams); when you pass in a vector of variable names after the vars in daeFunction, everything...

3日 前 | 0

| 採用済み

回答済み
How to find the value from equations?
eqn = (1*10^(-5)).*(Wg./Lg)* log10( 1 + exp(a./5)) ./ ( 1 + exp(a./5))==Ids IDS is a vector, so eqn is a vector. But syms a is ...

3日 前 | 0

回答済み
Trouble with my homework - Getting an error in my linear programming code requiring a double.
linprog((f,A,ub,[],[],lb,options) You missed passing ub in. Your options are in the ub slot.

3日 前 | 0

| 採用済み

回答済み
WebApp Using dir to get client directoy
There is no supported way to do that. Technically, the ability is (if I recall correctly) supported with restrictions under HTM...

3日 前 | 0

回答済み
the plot is not appearing what should i fix ?
for i=1:length(Depth) E(i)=Depth(i)+q^2/(2*g*Depth(i)^2); end plot(app.UIAxes,E,Depth,'r'); However, the convention ...

3日 前 | 0

回答済み
When will Ubuntu 22.04 be supported?
September 20, 2023.

3日 前 | 0

回答済み
How to fill an array with Nans from 11,000x43 to 32,000x43 to generate a 3D array to be able to concatenate?
heights = structfun(@(V)size(V.data,1), v1); maxheight = max(heights); paddings = maxheights - heights; for K = 1 : numel(S...

3日 前 | 0

回答済み
In an assignment A(I) = B, the number of elements in B and I must be the same.
x= data_train(:,i); That looks like a column of data, but we cannot tell how large it is v1 = wh*x; %data entered If wh is a ...

3日 前 | 0

回答済み
how to take mean of three dimension data at seasonal scale?
Same basic way, mam = reshape([3:12:120; 4:12:120; 5:12:120], 1, []); MAM = data(:,:,mam); MAM3 = reshape(MAM, size(data,1), ...

4日 前 | 0

| 採用済み

回答済み
Use Matlab with not supported Py3.x version (e.g. ML 2021a with Py 3.9)?
Yes, of course there is a possibility. Python is open source code. You can get a copy of the 3.9 code and alter the numbering a...

4日 前 | 0

回答済み
Convert txt files in csv/xlsx files
dinfo = dir('*.txt'); filenames = {dinfo.name}; nfiles = length(filenames); for K = 1 : nfiles thisfile = filenames{K}...

4日 前 | 0

| 採用済み

回答済み
How to change index value of logical array.
locs = find(Mask); first = locs(1); last = locs(end); With regards to changing the index: what do you want to do if t...

4日 前 | 0

回答済み
how to generate synthetic data using probability?
randn() * standard_deviation + mean The result is seldom realistic trajectories, as real trajectories have more continuity. U...

4日 前 | 0

回答済み
keep few images and delete the rest in a folder
dels = setdiff(1:length(all_files), b); arrayfun(@(idx)delete(all_files{idx}), dels);

4日 前 | 1

| 採用済み

回答済み
I cann't insert calculated variable (make it to properties var)into ther row with colum name "Result"
app.up.Result(1) = app.ptu1; app.up.Result(2) = app.path; For those assignments to work, each of the...

4日 前 | 0

回答済み
how to remove conj from equations? AND SOLVE THEM ?
At some point in your code, you construct a row vector of equations, and then you use the ' operator thinking that it will trans...

4日 前 | 1

| 採用済み

回答済み
Confusion between real-world and floating-point values
You forgot to take into account that an integer data type operated on with a double precision number, returns the integer data t...

4日 前 | 0

| 採用済み

回答済み
Legend inside for loop
for i=1:10 figure() subplot(2,2,i) H(3*i-2) = plot(x, y, 'displayname', i + "A"); hold on H(3*i-1) = pl...

4日 前 | 0

回答済み
Extract value from every struct
vois={'ldF', 'rdF', 'lvF', 'rvF'}; numvois = length(vois); basedir = 'place/where/the/folders/are'; foldinfo = dir(basename...

4日 前 | 0

回答済み
Scaling one dataset to fit another dataset
It is not clear what is being scaled, or how x y v t fit in here other than the condition for v. But suppose you break the da...

4日 前 | 0

| 採用済み

回答済み
How to save character matrix into NetCdf files?
The default data type is double. You need the "datatype" option. Please recheck what x and y mean to you. You are using x as ...

4日 前 | 1

| 採用済み

回答済み
"Undefined function or variable 'PA'. The first assignment to a local variable determines its class.". Why do I keep getting this error?
double(PA); double(IA); D=Dprev; PA=VA*IA; You do something (useless) with PA before you assign to it. Remember in MA...

4日 前 | 0

回答済み
Copying directory structure without files
You only have to mkdir the leaf directories: mkdir will create any intermediate directory needed. You can use dir() with the...

5日 前 | 1

| 採用済み

回答済み
adding counter as a number of runs performed
You can use persistent variables. Generating the *name* of a variable on the fly is not recommended.

5日 前 | 0

| 採用済み

回答済み
why the program is not running .
k=4:0.2:5; D1=solve(D==0,c); Consider the following code: A = 1 B = 10*A A = 2 What is the value of B ...

5日 前 | 0

| 採用済み

回答済み
How should sensor nodes be arranged in the grid?
Penrose tiling.

5日 前 | 0

回答済み
Do matlab has build-in mnist dataset for CNN training? If I load it as dlarray, how do I train it with CNN?
No it does not. The download link is given at https://www.mathworks.com/help/deeplearning/ug/data-sets-for-deep-learning.html

5日 前 | 0

| 採用済み

回答済み
Why the Accuracy is changing for same data set while using Classification learner app in MATLAB.How do I get the Accuracy same for all the time
Before every run, use rng() to set the random number seed to a consistent value. Most training systems for classifiers and ne...

5日 前 | 0

回答済み
How can we couple MATLAB and Aspen Exchanger Design and Rating?
https://www.researchgate.net/publication/332736398_Aspen_Plus_and_MATLAB_linking_methods shows the ID for Aspen Plus. I do not k...

5日 前 | 0

もっと読み込む