Answered
How can I easily and automatically arrange text objects on a figure so they are not placed on top of each other or plots?
The significantly easier solution to this problem is to use annotation 'arrow' and 'text' to put labels outside of the plot that...

5 jours ago | 0

Answered
How to access properties of objects instantiated between different classes in multi-window matlab app designer
app2 and app aux each have constructor methods. Change the constructors to accept an option parameter which is the handle of the...

5 jours ago | 1

| accepted

Answered
Getting Different plot values
Your data is not at all in pairs. Your data is in groups of 10 -- the data starts at 0 and returns to 0 each 10 entries. You ta...

5 jours ago | 0

| accepted

Answered
Dot indexing is not supported for variables of this type??? Parfor loop, and global variable
You can use parallel.pool.Constant to send a copy of the data to all workers, and you can use parfevalOnAll to run a function on...

5 jours ago | 1

Answered
Your software can solve transport matrices of more than 9000 cells of variables?
Generally speaking: There are some algorithms that require storage space that is linear in the number of variables being optimi...

6 jours ago | 0

Answered
Error using Distributed Parameter Line Block
See https://www.mathworks.com/help/physmod/sps/powersys/ref/powergui.html The default Sample Time is 50e-6 seconds; you need t...

6 jours ago | 0

Answered
Object returning its field possible?
See https://www.mathworks.com/help/matlab/matlab_oop/extend-built-in-class-operators.html

6 jours ago | 0

| accepted

Answered
How to generate m code for a variable
If the variable is double precision and is at most 2 dimensions, then you can use mat2str to construct the right hand side aa =...

6 jours ago | 0

Answered
how do I swap both axes in the current plot
You have three options: * you can solve U for y, taking caution because it will be multi-valued * you can use hg transform g...

6 jours ago | 0

Answered
Meta question about using this forum
The questions here that get the most response are the ones that post code and error message, and data files help too. Questio...

6 jours ago | 1

| accepted

Answered
dummy variable for calculating
Create a list of valid subsector codes, and a corresponding list the same size of the sector each should belong to. Use the t...

6 jours ago | 0

Answered
Why doesn't my for follow automatically complete end
Enable Preferences -> Editor/Debugger -> Automatic Completion -> Autocoding options -> Autocomplete block endinges "Control flo...

6 jours ago | 1

| accepted

Answered
How to compress a grey level image in different compression ratio
The png file has full data. When you imwrite an image as .jpeg, the compression algorithm first transforms the image as a serie...

6 jours ago | 1

| accepted

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

6 jours ago | 0

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

6 jours ago | 0

| accepted

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

6 jours ago | 0

| accepted

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

6 jours ago | 0

| accepted

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

6 jours ago | 0

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

6 jours ago | 0

Answered
When will Ubuntu 22.04 be supported?
September 20, 2023.

7 jours ago | 0

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

7 jours ago | 1

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

7 jours ago | 0

Answered
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), ...

7 jours ago | 0

| accepted

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

7 jours ago | 0

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

7 jours ago | 0

| accepted

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

7 jours ago | 0

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

7 jours ago | 0

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

7 jours ago | 1

| accepted

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

7 jours ago | 0

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

7 jours ago | 1

| accepted

Load more