Answered
how do you insert a image into another one row and column
monday = imread("monday.bmp"); f(351:370, 1:60, :) = monday; You need to be consistent about whether the image is to be RGB (3...

4 years ago | 0

Answered
problem in download the trial
In Turkey you need to go through a distributor; see https://www.mathworks.com/company/aboutus/contact_us.html#TR

4 years ago | 0

Answered
How to count the range numbers of a sea state and display a number in each block (in a scatter diagram)?
use histcounts() passing in edges of 0:0.5:5.5

4 years ago | 0

| accepted

Answered
installed toolbox is not added to Matlab path
But /root/MATLAB Add-Ons/Toolboxes/alexandria/alexandria is not on the path and neither is /root/MATLAB Add-Ons/Toolboxes/alexa...

4 years ago | 0

| accepted

Answered
How to write data to a binary file at a specific position?
First (and this is important!) write a block of zeros that is the same number of bytes as the final array size. The writing will...

4 years ago | 2

| accepted

Answered
Importing Text File with Different Row Types
If you use detectImportOptions() with 'ExpectedNumVariables' set to the maximum column, then you can (if necessary) also use set...

4 years ago | 1

| accepted

Answered
Will it ever be possible to release a license/toolbox that is no longer necessary without exiting MATLAB completely?
It is not possible at this time from within MATLAB. There is an external utility that can release a license. When I was adminin...

4 years ago | 0

| accepted

Answered
How to find out if a number is odd or even
modulo is called mod() in MATLAB

4 years ago | 0

Answered
too many input arguments when using pdepe
sol = pdepe(m,@(t,u) wave_ode1(x,t,u,dudx,p),@pdeic2,@pdebc2,x); pdepe needs m, then three function handles, then x mesh, and t...

4 years ago | 0

Answered
How do I loop a command for different variable names?
It is possible to do that, but we firmly recommend against doing that. http://www.mathworks.com/matlabcentral/answers/304528-tu...

4 years ago | 0

Answered
Why do I get: "Error using sum Invalid option. Option must be 'double' " even though my variable is a double?
At the moment you have code which is effectively sum(x,1,1) where x happens to have 3 columns. The first 1 there would give t...

4 years ago | 0

| accepted

Answered
Why do the random numbers repeat in each run?
When you use randi() each value is determined independently of the others. For example HT = 'HT'; HT(randi(2, 1, 5)) If, hy...

4 years ago | 0

| accepted

Answered
the math of movmean
help movmean Y = movmean(X,K) for a vector X and positive integer scalar K computes a centered moving average by slidi...

4 years ago | 0

| accepted

Answered
Subplot within for loop is duplicating/overlaying graphs.
poly(k)=0; %initialises poly; the integrating polynomial That makes poly a vector . On the second iteration of k, poly is going...

4 years ago | 0

| accepted

Answered
FFT when rescaling data
The first bin of an fft result is the sum of the input signal. In cases where the mean of the signal is 0, then the sum of the ...

4 years ago | 0

| accepted

Answered
error in unrecognized variable or function?
1) Your code does not define r for the case where the switch() does not match either case; 2) Your code is not producing one r ...

4 years ago | 0

Answered
Roots of the determinant of a 12x12 matrix with single nonlinear variable
I had a look at your matrix. I do not think there is any realistic way that you will be able to proceed symbolically. I think yo...

4 years ago | 0

Answered
How to save samples from audio files?
L = 1000; VoicedSpeech = x(L:0+ L-1); When L is 1000, then the : expression is 1000:0+1000-1 which is 1000:999 which is going...

4 years ago | 1

| accepted

Answered
Symbolic multidimensional arrays with changable dimension
You have the implicit question of how you can do n nested loops where n is entered by the user. There are two major ways: Firs...

4 years ago | 0

Answered
How to use && function for two ismembers on one line
The first output of ismember() is an array the same size as the first parameter to ismember(), with the output indicating whethe...

4 years ago | 0

| accepted

Answered
A question about Simscape component: gas-charged accumulator
I do not have any idea what the "real" answer is.. but if you explore the Gas Charged Accumulator, and ask to look at the Varia...

4 years ago | 0

Answered
How to calculate throughput after passing through an AWGN channel?
Most packet-based message transfer systems work by transfering a packet and then having a mandatory silence period. This is a de...

4 years ago | 0

Answered
De 16 bits a 32 bits
Multiply by 2^16

4 years ago | 0

Answered
Does the matlab local help documentation support black themes?
No, it does not support that.

4 years ago | 0

Answered
Help with the following error with quiver
quiver has a few calling sequences: * quiver(x, y, u, v) * quiver(u, v) * either of those followed by a scale factor * any...

4 years ago | 0

Answered
Is there a way to preview my posts to this forum?
The current editor for MATLAB Answers on desktop is WYSIWYG and does not need much in the way of preview. The main difference is...

4 years ago | 0

Answered
Mathworks: it's time for a dark theme.
I disagree with the premises expressed. I use my computer and phone many hours per day, but dark mode is hard on my eyes, making...

4 years ago | 3

Answered
Reduce runtime of my code
Assuming that it is the same data variable that is being searched each time: Look at fix(totalSeconds/60)*60 . The result has ...

4 years ago | 0

| accepted

Answered
How do I load only part of a table saved to a .mat file?
No, there is no method provided for that.

4 years ago | 0

Answered
How can I apply a non-built in function to an image for quantification?
quant= [I(i,j)*(fmax-fmin)/q]/N-1;

4 years ago | 1

Load more