Community Profile Last seen: Today Active since 2022

#### Statistics

• • • • #### Content Feed

View by

The multiplication result by sum() and matrix multiplication are not the same
In addition what Walter and Stephen said, if you have some specific application and you need to compare the floating point numbe...

4 maanden ago | 0

How to plot discrete array with colors
I would also like to offer my solution. It is not so elegant comparing to @Star Strider, but it can show you how bar can be used...

6 maanden ago | 0

The sample points must be finite.
Most likely, you're getting the error because you have missing entries in the data. websave("filename.csv","https://www.mathwor...

6 maanden ago | 0

| accepted

Integration of Numeric Data
I think this small code snippet would be sufficient to give you an idea how to proceed further: clc; clear; % Just for the pu...

6 maanden ago | 0

State-Space Matrix Closed Loop System C Matrix issue
This is how I would simulate similar system in simulink. First of all this is the simulation in Matlab script: % Transfer func...

6 maanden ago | 1

Can this equation be solved for x? If yes, how does the solution look? Thank you. Karl.
Things become complicated very easy with high degree polynomials. First, this is an example for qudratic equation: syms a b c ...

6 maanden ago | 0

| accepted

in FFT analysis , this kind of window appear, i cant find THD of signal, please guide.
I would suggest you to look in the documentation. Matlab has a builtin function called thd.

6 maanden ago | 0

| accepted

How can I combine two vectors with different lenghts and indexes into one sum.
You obviously have missing values in your table. This is how I would approach to this problem: tau = 0:10:80; mu_tau = mean(ta...

6 maanden ago | 0

| accepted

Predictors in classification learner app
This is explaind in the Matlab documentation here: https://www.mathworks.com/help/stats/feature-selection-and-feature-transform...

7 maanden ago | 0

| accepted

How to output a tout from Simulink space to Matlab so that it reads the value to us?
Hi @Krzysztof, when I want to access variables from simulink, plot them etc. I use to Workspace block in simulink and choose Ar...

7 maanden ago | 0

Unable to perform assignment because the left and right sides have a different number of elements.
Not really sure what you're trying to simulate here. From what I can see in the code, you have created a MIMO system with 4 inp...

7 maanden ago | 0

| accepted

Beginning and end of the curve isn't linked with points
At the bottom of your script I have added the following code: % Define number of digits numDigits = 10; % Enable data cursor ...

7 maanden ago | 0

| accepted

fit line to 3D scatterplot
I'm not really sure what you want to achieve here, but if you have X and Y data and want to do a linear fit, then you can constr...

7 maanden ago | 0

Customise marker and Line Style 2 value same Y axes in stackedplot
Can you try this: s.LineProperties(1).LineStyle = ["none", "-"]% remove the line for first s.LineProperties(1).Marker = ["x","...

7 maanden ago | 0

| accepted

"Error using fscanf"
You're getting this error because the path to your file is not correct. this is where the problem is: lightfile = strcat( dir...

7 maanden ago | 0

| accepted

Find the corresponding matrix
Is this what you need? A =[14 17 19 2 19 12 11 20 20 12 11 7 18 5 16 6]; B = [1;2;4;5;6;11;12;14;17;19;20]; rA = size(...

7 maanden ago | 0

| accepted

Using variable legend in for loop
Not really sure what you're trying to achieve, especially because abs(z) is always about 0.5, but regarding the legend, I think ...

7 maanden ago | 0

List S3 Files and Subdirectories
Well, this small code snippet create a file datastore that include all csv files starting with 'd' or 'D' from the current folde...

7 maanden ago | 0

Plotting inside structure array
This may not be the most efficient way, but here is how I would do it. I hope some of many gurus here may suggest more efficien...

7 maanden ago | 0

For example it is loaded from: C:\Program Files\...\toolbox\signal\signal\helidata.mat and this is installed together with Matl...

7 maanden ago | 0

how can i found the frequency of the first 10 words in a text?

7 maanden ago | 0

I have 2 error .Error using interp1>reshapeAndSortXandV (line 445) X and V must be of the same length. Error in interp1 (line 128) [X,V,orig_size_v] = reshapeAndSortXan
Please have a look at the documentation for the information how to use interp1 function correctly: https://www.mathworks.com/he...

7 maanden ago | 0

how can i do a histogram ?
For the paricular case, I think bar function would be more appropriate. text = "In the realm of possibilities, actions speak l...

7 maanden ago | 0

How to combine boxplots from Anova into subplots
Can the following example give you an ide how to solve the problem? clear;clc;close all; y1 = meshgrid(1:5); %rng default; ...

7 maanden ago | 0

| accepted

Question

Legend with geobubble function is not behaving as expected
Hello, I have very strange and unexpected behavior of showing legend when using geobubble function. I'm reading data from the ...

8 maanden ago | 0 answers | 0

### 0

Merging Date and time

8 maanden ago | 0

How to numerically solve system of equations and differential equations simultaneously?
Does this make sense to you (in your simple example)? syms A B C(t) eqn1 = diff(C,t) == 6*A; C_sol = dsolve(eqn1) eqn2 = A...

8 maanden ago | 1

| accepted

Convert MATLAB use of Probability Density Function (PDF) to Python
I have made a quick test using Matlab's built in function pdf and Python's stats.norm.pdf x = [-2 -1 0 1 2]; mu = 1; sigma = ...

8 maanden ago | 0