Statistics

All
  • Most Accepted 2024
  • Most Accepted 2023
  • Solver
  • First Review
  • Most Accepted 2022
  • Most Accepted 2021
  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016

View badges

Feeds

View by

Answered
Find least binary palindrome greater than a natural number
There are two cases. In the first case, the first half of the number is greater or equal to the reflected second half of the nu...

ungefär 15 timmar ago | 1

Answered
Elementwise multiplication of two 3D matrices
pagemtimes is for page-by-page algebraic matrix multiplication. It takes two matrices of size [A B C] and [B D C] and produces a...

ungefär 16 timmar ago | 0

Answered
I want to get binary data from a bin file.
I was right to be concerned about the file format. The actual file format involves an 8 byte header that gives array sizes. The...

ungefär 16 timmar ago | 0

Answered
Hello, It's pudding!! I'm new with Matlab and i'm using old version 2011a!!
for i=1:length(D) plot(freq_nat(i),zeta(i)); You are plotting a scalar against a scalar in each iteration. By default, plot()...

en dag ago | 0

Answered
I need to find the minimum value and the locations of all occurrences.
fprintf('The location of the minimum value is row %3.0f column %3.0f \n', row, column); When you do this in fprintf(), all of ...

en dag ago | 2

| accepted

Answered
How to use all CPU cores
Each pair of "logical" cores shares physical core resources. "Logical" cores have their own set of registers, but only one set o...

3 dagar ago | 1

Answered
Why are these zeros adding themselves to the array?
function result = expn(x,n) result = 1; for i = 1:n result = (result + x.^i/factorial(i)); end end x...

4 dagar ago | 1

Answered
Are there any faster alternatives to readlines?
For the purposes of the below test, I will assume that it is important that the text be split into lines, but that it is not imp...

4 dagar ago | 1

Answered
Error message in the console when using batch
fetchOutputs() in a try/catch environment. It will succeed if there was no error, and will throw an error if there was an error ...

4 dagar ago | 0

Answered
dividing coastline into equal interval
See John D'Errico's File Exchange contribution interparc https://www.mathworks.com/matlabcentral/fileexchange/34874-interparc wh...

4 dagar ago | 0

Answered
Varying Marker Color by Variable with plotm
You should probably be using scatterm instead of plotm . You are using 'ko' line specification, so you are not joining points ...

4 dagar ago | 0

| accepted

Answered
How can I use a Simulink.Signal Object as a parameter in a masked subsystem in R2022b?
Initial conditions are time-less (no time information associated.) Simulink.Signal objects have attached time. These two thing...

4 dagar ago | 0

Answered
MinGW installation for Matlab R2019a
You were trying to install MinGW for R2019a during a time when R2019a was only available in pre-release (Stream "a" releases of ...

4 dagar ago | 0

Answered
How to change the volume dimensions in niftiread.
niftiread just returns an array of data, without any particular size of voxels. You would have to use niftiinfo to fetch informa...

5 dagar ago | 0

Answered
Need to find a specific point on a line using data from a 2 column matrix
Your y data has multiple different x values for most y values. Interpolating using y as the independent variable and x as the de...

5 dagar ago | 0

Answered
Error in multolying a number and function handle
tanfi=@(x) tand(x(1)); Up to this point, you are creating function handles -- pieces of code that do not take action directly, ...

5 dagar ago | 0

Answered
How to write a table in a textarea on a Matlab App?
app.Zsc.Value(cas)=compose(formatSpec,Out_Zsc(cas)); First off, your code Out_Zsc(cas) is an attempt to subscript at table with...

5 dagar ago | 0

Answered
Que hacer cuando aparece un dato discreto NaN
In the worst case, there might be nothing you can do. But possibly what you could do is convert your for loop into a while loop...

5 dagar ago | 0

Answered
use map data structure with simulink -android
Containers.map data structures cannot be output from Simulink blocks. The newer dictionary data type also cannot be output from...

5 dagar ago | 0

Answered
Audioread Bug with Opus (maximum value returned exceeding 1)
I would say it is a bug. audioread() documents If you do not specify dataType, or dataType is 'double', then y is of type doubl...

5 dagar ago | 0

Answered
compute square rooot and square of each element
You can use element-wise power, the .^ operator. For example x = [27 64] x.^(1/3)

6 dagar ago | 0

Answered
Can I use figures generated by view(net) command freely in my thesis and academic papers?
Yes, you can use derived outputs in your publication. license_agreement.txt Program Offering Guide Release 2024b Part Two:...

7 dagar ago | 1

Answered
Facing issue in executing P code
In email you sent me another important detail, namely that your primary error is "file is created before 2007 b." At this poin...

7 dagar ago | 0

Answered
Which model did detect use?
No. detect() for laneBoundariesDetector objects documents, The laneBoundaryDetector object detects lane boundaries in images by...

8 dagar ago | 0

| accepted

Answered
How do I replace colordef?
As of R2025a (currently in pre-release) there are new facilities for controlling desktop color schemes that overlap with colorde...

8 dagar ago | 0

Answered
Why does containers.Map('KeyType','double') silently return a map with KeyType 'char' ?
containers.Map('KeyType','double') is interpreted as being an instance of calling M = containers.Map(keySet,valueSet) You nee...

9 dagar ago | 0

| accepted

Answered
Why trapz is giving me negative area?
The syntax of trapz() is trapz(X, Y) -- so independent variable followed by dependent variable. If you trapz(freq, power) then ...

10 dagar ago | 0

| accepted

Answered
Hi everybody. I'm kind of new to MATLAb and looking to get more efficient in my coding. This feels clunky to me and I feel like I could definitely shorten it. Any ideas?
You do not need the loops. for f = 1:4 DeltaV(f) = ve(f,1)*log(mi(f,1)/mf(f,1)); mf_DV2(f) = mi(f,1)/(exp(DV2/(ve(f,1...

11 dagar ago | 0

Answered
PIN configuration without Hardware Support Package
No, it does not.

11 dagar ago | 0

Load more