Answered
ocr for reading text
<http://www.mathworks.com/matlabcentral/fileexchange/?term=tag%3A%22ocr%22>

13 years ago | 0

Answered
How can i run this matlab code?
Have you read README and help file? Perhaps it says everything you need.

13 years ago | 1

Answered
Binary string to character conversion
S = '001000110111'; a = '0'; b = '10'; c = '110'; d = '111'; S = strrep(S,d,'d'); S = strrep(S,c,'c'...

13 years ago | 0

| accepted

Answered
regarding save in matlab
Use save with optional arguments: save('your_file', 'first_variable', 'second_variable', ... ) see also doc: <http://...

13 years ago | 0

Answered
make image
<http://www.mathworks.com/help/techdoc/ref/image.html> <http://www.mathworks.com/help/techdoc/ref/imagesc.html>

13 years ago | 0

| accepted

Answered
How to adjust the Grid size
Analyze this code: plot(1:10000) grid on pause set(gca,'XMinorTick','on') grid minor pause set(gca,'Xtick...

13 years ago | 2

| accepted

Answered
running R within matlab
There is a *Rscript* command, so you can run it in this way: !Rscript your_script.r

13 years ago | 1

| accepted

Answered
Display negative values on logarithmic graph
Plot the logarithm of the absolute value of *y* multiplied by sign of *y*, and the change labels: x = linspace(0,3,10000); ...

13 years ago | 0

| accepted

Answered
.txt to .wav file conversion
First load data from file using e.g. importdata: <http://www.mathworks.com/help/techdoc/ref/importdata.html> And then save...

13 years ago | 1

| accepted

Answered
Matlab GUI from m file only
Yes it is possible, for example watch this video: <http://blogs.mathworks.com/pick/2007/12/28/matlab-basics-guis-without-guid...

13 years ago | 0

Answered
Plotting figures with Multiple Axes
Do you have this function <http://www.mathworks.com/matlabcentral/fileexchange/9016> in your search path? <http://www.m...

13 years ago | 0

Answered
solving quadratic equation
If you have one equation just solve it with _roots_ function and choose solution which satisfied your inequality.

13 years ago | 0

Answered
plot Bethe-Bloch equation
Use *.** (the element-by-element product) operator for array multiplication.

13 years ago | 0

Answered
why why why why why ..........................................
It means, that program is still running. Run it in debug mode, and you will see step by step how it works.

13 years ago | 0

Answered
failed to determine the appropriate size in find
What should be the y? Maybe replace: if (isempty(k1)) k1 = 0; end with: if (isempty(k1)) k1 = 1...

13 years ago | 0

Answered
To pick random data
a=[1 2 -8 9 0 5]; b=[6 7 1 5 8]; imax = 10; if any(ismember(a,b)) a = randi(imax,size(a)); b = rand...

13 years ago | 1

Answered
Problem with ODE solver
[T,Y] = ode113(@(x,y)4*x,[-4 4],32); fplot('2*x.^2',[-4 4]) hold on plot (T,Y,'ro')

13 years ago | 0

| accepted

Answered
Plot sine wave whose frequency changes with time
t = linspace(0,2,2000); plot(t,sin(2*pi*(50+sin(10*pi*t)).*t))

13 years ago | 0

Answered
subplot hoe to add a tile?
Try this code: for i = 1:4 subplot(2, 2, i) plot(rand(1, 10)); end axes('Units','Normal','Position',[.0...

13 years ago | 0

| accepted

Answered
how to sort the elements of an array within a given range?
a=[2 5 1 3 4]; a(2:4) = sort(a(2:4))

13 years ago | 0

| accepted

Answered
using find function
If I understand you correctly, try to round your vector roughly this way: round(p*100)/100 or use find something like th...

13 years ago | 0

Answered
Particle Swarm Optimization in matlab
Try to solve your task with this toolbox: <http://www.mathworks.com/matlabcentral/fileexchange/7506>

13 years ago | 0

Answered
Error when evoking patternsearch
Try to debug your program with the command: dbstop if error It looks to me, that you have overwrote some matlab functi...

13 years ago | 0

Answered
Pattern search
The example in documentation shows how to use objective function with constrains: <http://www.mathworks.com/help/toolbox/gads...

13 years ago | 0

Answered
Read/Write audio files in Matlab
I propose to use any MP3 to WAV converter, and then wavread & wavwrite functions.

13 years ago | 0

Answered
Making graphs from data given
<http://www.mathworks.com/help/techdoc/data_analysis/f0-15185.html> <http://web.cecs.pdx.edu/~gerry/MATLAB/plotting/loadingPl...

13 years ago | 0

Answered
Plotyy x-axis overwritting with two plotyy graphs and legend issues
Using these commands together is a little complicated. My proposition to solve this problem is as follows (I removed the unneces...

13 years ago | 0

Answered
what's wrong with 'smooth' and 'find' commands in this code?
Look at result of this line: y- round(y*10)/10 In vector y there is no exact 0.6 value. Try this code: x = [0 0 ...

13 years ago | 0

| accepted

Answered
How to add images on a pusbutton
You can set images in this way: function test1 i1 = imread('http://img818.imageshack.us/img818/7208/03close.png'); i2...

13 years ago | 1

| accepted

Answered
Plotting on Secondary y-axis and scaling
Let's try it this way: clear clf A1 = 0.1:0.1:1; B1 = 100000./(A1); E1 = nan(size(A1)); for i=1:length(A...

13 years ago | 1

| accepted

Load more