Answered
I am trying to answer my following word problem and I am running in to issues developing a function
|dP/dt = (2-0.1t)P| as code: function dP = finc1(t, P) dP = (2 - 0.1 * t) * P; end And the function to integrate i...

8 years ago | 1

| accepted

Answered
Plotting two vectors/arrays/curves with different distribution intervals as a single curve
Data = [24 1.4050 15 9.4526 48 0.8348 30 7.7970 72 1.0272 45 6.8056 96 1.2513 60 6.0248 120 1.5518 75 5.3847 ...

8 years ago | 0

| accepted

Answered
I have installed matlab as a run as administrator but again and again asked for acitvation. Please suggest me and how can i install matlab?
A search in the forum is a good idea: * <https://www.mathworks.com/matlabcentral/answers/106141-why-am-i-continuously-prompte...

8 years ago | 0

Answered
Separating values in cell arrays
Remember, that |txt| is a cell array. Then eitehr use [dummy, str] = strtok(txt{k}, '='); But |strtok| can operate on th...

8 years ago | 0

Answered
how can i avoid xlwrite error ?
What does "a long time" means exactly? Seconds, minutes, hours? What happens if the message does not appear? Maybe your disk ...

8 years ago | 0

| accepted

Answered
how can i solve this error : Error using / Not enough input arguments.
Use the debugger to examine the problem: <https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html ...

8 years ago | 0

Answered
How to plot a line with discontinuity
The problem is (at least I assume this), that you cannot see the last element. This happens, because it is a scalar. Such "point...

8 years ago | 2

| accepted

Answered
Interpolation Between Two Matrices
If you want the average between two matrices, using |mean| is smart enough. There is no need for a _more sophisticated_ method. ...

8 years ago | 1

Answered
what is the properties of single function
Dou you mean the function called |single|? help single doc single It converts a number to a floating point value of t...

8 years ago | 0

Answered
Where can i find my licence key or number
Do you have a local Matlab installation? Then run the |license| command. Or login to your Matlab account. In the upper right ...

8 years ago | 0

Answered
Index exceeds matrix dimensions. Error coming in 4th line
My guess is, that the folder contains less than 20 files. Then replace for count = 1:20 by for count = 1:numel(lis...

8 years ago | 0

| accepted

Answered
Trusted shadowing of i() and j()
I think, that such an implementation of |i()| and |j()| cannot be "trusted". What if any built-in Matlab tool uses: try ...

8 years ago | 0

Answered
How count NaN values and replace NaNs in a sequence with that number?
With <https://www.mathworks.com/matlabcentral/fileexchange/41813-runlength FEX: RunLength> (link): a = [0 0 NaN 0 0 NaN NaN...

8 years ago | 0

Answered
How to interpolate at NaN values?
a = [1 2 3 NaN 4 4.5 5.5 NaN NaN 6 6 7 NaN NaN NaN 8]; b = 0.5 * (fillmissing(a, 'previous') + fillmissing(a, 'next')) O...

8 years ago | 5

Answered
dataA=[dataA; sum(data((i,n):(i+2,n)))]; ...the matlab is telling it is invalid syntax how to rectifyit?
This is no valid Matlab code: data((​i,n):(i+2,​n)) Maybe you mean: data(i:i+2,​ n) or data(i,n):data(i+2,​...

8 years ago | 0

| accepted

Answered
How to modify Loop variable inside the loop body
This does not work in a |for| loop, but in |while|: i = 1; while i <= 10 disp(i) ... i = i + 1; if r...

8 years ago | 2

| accepted

Answered
help me with the installation.
I can recommend to search in the forum before posting a new question. You can find: * <https://www.mathworks.com/matlabcentra...

8 years ago | 0

Answered
Importing a certain value on the cell (Excel)
Something like this might work: [num, txt] = xlsread(FileName, 'C5:C5'); [dum, str] = strtok(txt{1}, '='); str(1) ...

8 years ago | 0

| accepted

Answered
convert hex data to viewable image(JPEG) in matlab
Import the HEx data as 8 Bit values: img = fscanf(fid, '%2x', [256,120]) % ^ this matters You canno...

8 years ago | 0

Answered
Hittest axes with WindowWheelScrollFcn callback
Try |overobj2| from <http://undocumentedmatlab.com/blog/undocumented-mouse-pointer-functions>

8 years ago | 1

| accepted

Answered
reshape and sum multi-dimensional matrix
Or: squeeze(sum(reshape(A, 20, 30, 2, 20), 3))

8 years ago | 0

Answered
Split information into two columns
Str = {'House_Red'; ... 'House_Yellow'; ... 'House'; ... 'House_X_Red'; ... 'House_X_P...

8 years ago | 0

Answered
Search down 2 subdirectories from a starting directory and read a certain cell from the csv file?
pathStart = 'C:\images\temp'; list_dir = dir(fullfile(pathStart, '**', '*.csv')); % Working since R2016b for i = 1:len...

8 years ago | 0

| accepted

Answered
Slow execution of scripts
I assume the function will be faster than the script. Simply try it. Instead of replying one struct, you can reply a list of ...

8 years ago | 0

| accepted

Answered
Permission denied when copying M and ASV files in Matlab
Are some of the files opened by Matlab or another application? Whenever a mystic behavior was mentioned in the forum, there w...

8 years ago | 0

Answered
how can i find When function is zero without Functions like fzero solve ...?
I'm sure you have heard something about method to find roots of functions. Perhaps a Newton-Raphson method? Or Regula-False, bis...

8 years ago | 0

Answered
Two Bar Plots on one graph, with the bars next to each other, with horizontal axis showing text
Maybe: ax = axes; y = [75 91 105]; bar(y, 1) ax.XTick = 1:3; ax.XTickLabels = {'1st', '2nd', '3rd'};

8 years ago | 0

| accepted

Answered
How to permute one matrix columns according to rows in different matrix?
To select 4 elements from A, one from each column: index = randi([1,4], 1, 4) + (0:4:12) % linear indexing A(index) ...

8 years ago | 0

| accepted

Answered
How can I display the second derive of a vector ,?
gradient(gradient(data(:,2)));

8 years ago | 0

| accepted

Answered
Plot Text - Index exceeds matrix dimensions
I guess that you have redefined "text" as a variable. Check this using the debugger. Type this in the command window: dbsto...

8 years ago | 1

| accepted

Load more