Solved

Pernicious Anniversary Problem

Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

circa 2 anni ago

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...

circa 2 anni ago

Solved

Energy of a photon

*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...

circa 2 anni ago

Solved

How to subtract?

*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...

circa 2 anni 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...

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...

circa 2 anni ago | 0

Solved

Multiply by 3

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

circa 2 anni ago

Solved

Get the length of a given vector

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

circa 2 anni 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...

circa 2 anni 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...

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...

circa 2 anni 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...

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...

circa 2 anni 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...

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...

circa 2 anni 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....

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....

circa 2 anni 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...

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...

circa 2 anni 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/...

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/...

circa 2 anni 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...

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...

circa 2 anni 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...

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...

circa 2 anni 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...

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...

circa 2 anni 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

oltre 2 anni ago

Submitted

MakeHTMLTableFilter

Visualizing Tables in HTML from MATLAB

circa 3 anni ago | 5 downloads |

Submitted

URL Read Table

Return cell array of tables from HTML page.

circa 3 anni ago | 17 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...

circa 3 anni 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...

circa 3 anni 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 ...

circa 3 anni 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

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

circa 3 anni 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.

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.

circa 3 anni 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 ...

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 ...

circa 3 anni 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...

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...

circa 3 anni ago | 1

| 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;

why won't this plot?

for i = 1:length(xaxis); hold on ;if xaxis(i) >0; plot(xaxis(i),yaxis(i),'x'); end; end;

circa 3 anni 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')...

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')...

circa 3 anni 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...

circa 3 anni ago