Reddit » Matlab
409 FOLLOWERS
This subreddit is a place to discuss the MATLAB programming language and its implementation.
Reddit » Matlab
1d ago
Hey guys I am designing a robust controller for using H_inf and Mu-synthesis.
Well, the project is basically a recreation of paper results.
To link to this article: https://doi.org/10.1080/0042311090354074
The controller needs to be designed to suppress the effect of friction induced vibrations during clutching operation called judder oscillations. Specifically at 2930 rad/sec frequency. Which is natural frequency of my dynamic model.
Two model parameters like kinetic friction and clamping force are real-valued uncertain parameters.
Speaking of robustness, I need to make my system nominally s ..read more
Reddit » Matlab
1d ago
https://preview.redd.it/awn1xpfzkowc1.png?width=690&format=png&auto=webp&s=7edd5f2b47896cb8c63dee7eb1f8ed99c9752678
https://preview.redd.it/6ah2cpyjcowc1.png?width=855&format=png&auto=webp&s=5d92de32d3fbfa714f98350921e527aa1969fff9
https://preview.redd.it/spmv6nxocowc1.png?width=1571&format=png&auto=webp&s=07e3bcd22dfb91ed25a951574d5122e5c698c40d
Hello there I have an issue where it is telling me the error "Unable to perform assignment because the left and right sides have a different number of elements."
The code functions only , when I remove the code ..read more
Reddit » Matlab
1d ago
Hello all!
Can you tell me how to create a plot like the one in the photo?
submitted by /u/Limp_Night_1128
[visit reddit] [comments ..read more
Reddit » Matlab
1d ago
I'm tring to find the location of a string in a 2d array. If I run the below code it gives me an entire list of all the match values of the array, and I just want the single location of a value to show up.
sALL = ["a","b","c","d","e","f","g","h"]; for ii = 1:8 n2str = num2str(8-ii+1); for jj = 1:8 chm(ii,jj) = strcat(sALL(jj), n2str); end end chm sidx = strfind(chm,"e4")
submitted by /u/Mark_Yugen
[visit reddit] [comments ..read more
Reddit » Matlab
1d ago
------------------------------------------------------------------------
Illegal instruction detected at Thu Apr 25 14:26:39 2024
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Default Encoding : windows-1252
MATLAB Architecture: win64
MATLAB Root : D:\matlab programa
MATLAB Version : 8.3.0.532 (R2014a)
Operating System : Microsoft Windows 11 Pro
Processor ID : x86 Family 143 Model 113 Stepping 0, AuthenticAMD
Virtual Machine : Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window Sy ..read more
Reddit » Matlab
1d ago
Hello all,
I'm a struggling mechanical engineering student and I have a course project where I'm supposed to create a vehicle model (wildly, I've got this done) and then simulate a cruise controller.
In the project I'm supposed to create a graph where five different speeds are shown at different times, so for example at reference speed 10 should be from 0-60 and speed 20 from 60-300, etc. There are five different speeds and the timeline for these is from 0-500.
I've tried googling and asking ChatGPT to no avail. I've asked the teacher if my vehicle model looks right and it is, so the prob ..read more
Reddit » Matlab
1d ago
Hello all,
I'm a struggling mechanical engineering student and I have a course project where I'm supposed to create a vehicle model (wildly, I've got this done) and then simulate a cruise controller.
In the project I'm supposed to create a graph where five different speeds are shown at different times, so for example at reference speed 10 should be from 0-60 and speed 20 from 60-300, etc. There are five different speeds and the timeline for these is from 0-500.
I've tried googling and asking ChatGPT to no avail. I've asked the teacher if my vehicle model looks right and it is, so the prob ..read more
Reddit » Matlab
1d ago
I am specifically looking for explanation on these two versions (shown when typing help snr in command line)
R = snr(X) computes the signal to noise ratio (snr), in dBc, of
the real sinusoidal input signal X. The computation is performed over
a periodogram of the same length as the input using a Kaiser window
and excludes the power of first six harmonics (including the
fundamental).
R = snr(X, Fs, N) computes the signal to noise ratio (snr) in dBc, of
the real sinusoidal input signal, X, with sampling rate, Fs, and number
of harmonics, N, to exclude from computation when computing snr. The
de ..read more
Reddit » Matlab
1d ago
Relatively new to MATLAB. I'm getting an error that says "Not enough input arguments" and it highlights the "T" in "x1_t(T)". Not sure why there wouldn't be enough input arguments because I'm only using the variable "T" and it is defined in the parameters parentheses of the function.
Would appreciate any advice on how to fix this error, along with some understanding of why the error happened. Thanks!
function X = x1_t(T) X = piecewise((T < -5) | (T > 10), 0, (T > 5) & (T <= 10), 10, (T >= -5) & (T <= 5), (-2 .* abs(T) + 10)); end
submitted by /u/bartouche
[visit r ..read more