Solved


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

6 years ago

Solved


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

6 years ago

Solved


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

6 years ago

Answered
read data line by line from a .dat file after pressing a certain keyboard key
Are you looking for fgetl? <https://www.mathworks.com/help/matlab/ref/fgetl.html?s_tid=doc_ta Read line from file, removing new...

6 years ago | 0

Solved


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

6 years ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

6 years ago

Solved


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

6 years ago

Answered
Can I run Simulink models using python program?
Have you seen the MATLAB Engine API for Python? <https://www.mathworks.com/help/matlab/programming-interfaces-for-c-c-fortran...

6 years ago | 0

Answered
how can i create a delay block(like in simulink) with matlab code
Have you tried the pause command? <http://www.mathworks.com/help/matlab/ref/pause.html pause: Stop MATLAB exectution temporar...

6 years ago | 0

Answered
How can I extract number/letter part from this binary image ?
Have you tried OCR? Optical Character Recognition. <http://www.mathworks.com/help/vision/examples/recognize-text-using-optica...

6 years ago | 0

Answered
How can I used Matlab for predictive modelling with those data ?
Have you seen the MathWorks Predictive Modeling website? It has lots of examples that will help you get started <https://www....

6 years ago | 0

Answered
Can a simulink program send voltage readings to arduino uno?
Have you seen the Arduino Blocks in Simulink? Check this out: <https://www.mathworks.com/help/supportpkg/arduino/examples/get...

6 years ago | 0

| accepted

Answered
Generate a random number with a distribution in Simulink
There is a random source block in Simulink, is this what you are looking for? https://www.mathworks.com/help/releases/R2016b/...

6 years ago | 0

Answered
how can i read unformatted binary file into matlab
Have you tried using the fread command with the options? <https://www.mathworks.com/help/releases/R2016b/matlab/ref/fread.htm...

6 years ago | 0

Answered
Face recognition in live video
Does this work for you from the example? (This is the basic starting point of that demo). <https://www.mathworks.com/help/rel...

6 years ago | 0

Answered
Insert BLOB data into SQLite database field using Matlab and SQL query. Any idea?
Say you have a MAT file, (which is binary) and you want to store that in the sqlite blob... one way to do this is: % Read y...

6 years ago | 0

Solved


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

7 years ago

Submitted


MakeHTMLTableFilter
Visualizing Tables in HTML from MATLAB

7 years ago | 2 downloads |

Thumbnail

Submitted


URL Read Table
Return cell array of tables from HTML page.

7 years ago | 4 downloads |

Solved


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

7 years ago

Solved


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

7 years ago

Solved


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

7 years ago

Answered
Displaying more than four decimal places in Live Script
This has to do with they way you format your answer. Try this in the live script: pi format long pi

7 years ago | 0

Answered
can u send me the code if i attached that particular paper??
This sounds like homework... MATLAB Answers is not designed for others to do homework assignments.

7 years ago | 1

Answered
issue with Repeating Random Numbers in parfor-Loops
<https://nl.mathworks.com/help/matlab/math/why-do-random-numbers-repeat-after-startup.html Why do Random Numbers start the same ...

7 years ago | 0

Answered
Add new data into existing excel file
If you use xlswrite with this code it should work: filename = 'testdata.xlsx'; A = {'Time','Temperature'; 12,98; 13,99; 14...

7 years ago | 5

| accepted

Answered
why won't this plot?
for i = 1:length(xaxis); hold on ;if xaxis(i) >0; plot(xaxis(i),yaxis(i),'x'); end; end;

7 years ago | 0

Answered
why won't this plot?
You need to add the hold on command. Try this: for i = 1:length(xaxis); hold on;if xaxis(i) >0; plot(xaxis(i),yaxis(i),'x')...

7 years ago | 0

Solved


Back to basics 4 - Search Path
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the user's portion of the current search...

7 years ago

Solved


Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

7 years ago

Load more