Beantwortet
How to do this temporal plot
Here's one way. For importing data, perhaps something like data=transpose(readmatrix('filename.xlsx',Range','A2:N2002')); Empt...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I create a property in a class that is a direct handle to another class object
@Captain Karnage like so? mydef = myDefinition; a = myDefinedObject([],mydef,[]); whos mydef a a.type a.type()

fast 2 Jahre vor | 0

Beantwortet
How to put name axes in 3D surf graph
Same way you would with a 2D plot. xlabel('Gy') ylabel('mm') zlabel('mm')

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
I want to do a knob for salt and pepper noise but the value of the noise dose not change
function UIAxesButtonDown(app, event) % The default button style doesn't have a value. % chang...

fast 2 Jahre vor | 0

| akzeptiert

Frage


Is there exist() functionality for packages/namespaces?
https://www.mathworks.com/help/matlab/matlab_oop/scoping-classes-with-packages.html Create a package and put it somewhere in Ma...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Need help with car suspension dampening, current code is exp growing.
Looking at the image, a_w and a_c are independent of previous acceleration values. Aw(end+1) = -(1/Mw)*((Cw+Cs)*Zw(end) + Cs*Zc...

fast 2 Jahre vor | 0

Beantwortet
Generating PDF and Overplotting from Subset of Data Using Gaussian Mixture Model
I believe the area under the curve of these PDFs is 1. One way to work around that (though probably not the most correct way) w...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Something unexpected occured when I installed the Bioinformatics toolbox
https://www.mathworks.com/support/contact_us.html Click "Create Service Request" and follow the instructions.

fast 2 Jahre vor | 0

Beantwortet
"Manually" adjusting the position of tiles in a tiled layout using Property Inspector
If you have something simple in mind, it's likely you can do so without manually adjusting things: figure('Color',[.8,.8,.8]) %...

etwa 2 Jahre vor | 0

Beantwortet
How to have only one output from each cell ? (Live Scripts)
These are "sections" in Matlab parlance, because "cell" is taken. There are three display modes for live scripts which can be t...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Passing variable from MATLAB APP Designer Edit Field to a variable inside a .m file.
m-file: function myFun(x) disp(x); end GUI: Properties x end function x_valueEditFieldValueChanged(app...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Calculate the coordinates of nodes in a plot3
This is one figure in the x-y plane. The z coordinates should be constant, wherever you choose to set z. If you had several imag...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I prevent rewriting of data in my structure array within a for loop?
Perhaps something like: if buttoncounter<=5 LEN = numel(data1g1); for i=1:buttoncounter % ... dat...

etwa 2 Jahre vor | 0

Beantwortet
removing outlier from data
It's a sliding window. From the text in the function: % B = RMOUTLIERS(A,..., MOVMETHOD, WL) uses a moving window method to ...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab RunTime and argc/argv as input arguments of an app?
(1) Is it possible to open this new app in the same instance of Matlab RunTime (that is running the calling app)? I agree, does...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Hoe to Empty Line Discover!
if isempty(tline) % do something, or nothing? end

etwa 2 Jahre vor | 0

Beantwortet
Linear indexing over a subset of dimensions
B = permute(A,[2,3,1]);

etwa 2 Jahre vor | 1

Beantwortet
How to save an indefinite number of outputs to a struct
Do you really need a struct? How about a map? (dictionaries came out in 2022b and should work fine as well) num_params = 3; v...

etwa 2 Jahre vor | 0

Beantwortet
Requirements for load() argument
The variable fullpath is a string already. When you use 'fullpath' in quotes, that's passing the string "fullpath" to load. Remo...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
I have a text file with 10 lines and 5 columns. I need to write a value (zero or one) at the end of each row, that is, in the last column of each row. How can i do this?
dlmwrite is deprecated, though you could use it in a similar fashion as below: fname = 'filename.txt'; outname = 'out.txt'; M...

etwa 2 Jahre vor | 0

Beantwortet
How to skip years with no data when reading the data from a website
You could use continue to move to the next iteration of the for loop.

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
DES implementation in MATLAB faacing error in performing XOR operation
a and b apparently do not have the same number of characters. You can confirm this by displaying their sizes: size(a) size(b) ...

etwa 2 Jahre vor | 0

Beantwortet
Is there a way to find the x & y intercepts and give it a label?
[~, idx] = min(abs(H_system_Open-pump_curve)); plot(Q(idx), pump_curve(idx),'k*') text(Q(idx),pump_curve(idx),'Label') If you...

etwa 2 Jahre vor | 0

Beantwortet
splitting range of rows in separate column
A = readmatrix('filename.xlsx'); len = size(A,1); % Make sure array length is divisible by 17. B = padarray(A,[17-mod(len,17)...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Data extraction after parallel computing
To debug a parfor loop, first remove the par and try to run it as a normal loop. It's possible something in your funcList is no...

etwa 2 Jahre vor | 0

Beantwortet
Plotting a legend without displaying data on UIAxes
colororder = {'r','g','b','c','m'}; x = rand(100,5); label = cellstr(num2str([1:1:size(x,2)]', 'cluster%d')); % Plot a p...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
rename single .txt file with changing seed number
Do you know the seed? testSeed = 454; NewTest = strcat('C:\Users\PC\Desktop\TestData', num2str(testSeed), '.txt') If you want...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to export sub/nested structures using writestruct?
If you want to write to a single output file, writestruct() already supports nested structs containing scalar or vector values. ...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to export sub/nested structures using writestruct?
In step 3, you are trying to do an rmfield operation on a string array (rmfield is for structs only). If you want to remove the ...

etwa 2 Jahre vor | 0

Beantwortet
underwater acoustic wave Signal to Noise Ratio (SNR)
Your individual noise sources add up to a decreasing signal, and I'm not sure af is on the right scale. Should S in the noise e...

etwa 2 Jahre vor | 1

Mehr laden