Answered
get rid of empty spaces in cells containing strings
Use str2num It trims any head tail blank space while at the same time converting fields to type double

10 years ago | 0

Answered
I have a question about plot and for loop
I only get same error message when introducing negative lengths. If I introduce 10ft or 100ft your script does not return any...

10 years ago | 0

Answered
how find exact value q for integral on partition interval?
This question is simple, but not as simple as it looks at first sight. the function x you have defined x=[0:2:8] has a...

10 years ago | 1

| accepted

Answered
How can I create a row of numbers form 1 to 10 ?. like this [1.0000, 2.0000, 3.0000,...]?
with format long;x=1:10 = 1 2 3 4 5 6 7 8 9 10 vpa only adds one zero: ...

10 years ago | 1

| accepted

Answered
Undefined function or variable 'a'.
You have to collect the output of your custom function assfunct3() with a variable that then you have to feed in the fprintf. ...

10 years ago | 0

| accepted

Answered
hello goodbye hello goodbye
You haven't scaled the radius yet. First, reproduce exactly the diagram of the spiral so you know that at the end of the angl...

10 years ago | 0

Answered
How to draw a log function?
Ahmad try this f = @(x) 1+log10(x) x=[-20:.1:20] y=f(x) plot(x,y) plot(x,y);grid on <</matlabcentral/answ...

10 years ago | 0

Answered
Problems defining a polynomial in the z domain
Araujo try the following syms z n F(z) = (0.6321*z^-1)/((1-z^-1)*(1-0.3679*z^-1)) f(n)=iztrans(F,z,n) F(z...

10 years ago | 1

| accepted

Answered
How to write a MATLAB function to find all the divisors between 2 and 20
have you tried divisors(42) = 1.00 2.00 3.00 6.00 7.00 14.00 ...

10 years ago | 0

Answered
How to write a MATLAB function that finds all of the positive entries in a matrix and their locations
the command find(A>0) = 1.00 5.00 8.00 9.00 only gives you the ...

10 years ago | 1

| accepted

Answered
index must be a positive integer or logical.
the main problem comes from w(l/r) Subscript indices must either be real positive integers or logicals. You are tryi...

10 years ago | 0

Answered
How to extract human contrast out of any given image?
Ben Have a look to the attached introduction to edge detection with Laplacian: Edge detection - Laplace edge detection algory...

10 years ago | 0

Answered
How to concatenate multiple tables from a list of table names
there isn't a standard function to concatenate tables, this answer is trivial <http://uk.mathworks.com/matlabcentral/answers/...

10 years ago | 1

Answered
How can I remove all the small terms in multiple matrices transformation? It's too hard to read.
Yong You don't need MuPAD: 1.- take logarithm log10() of every term 2.- remove the terms smallers that -16 3.- get t...

10 years ago | 0

Answered
Formatting the color/font of a Cellplot using code
with colormap autumn the default colour map for surf is parula, haven't checked for cellplot, or colormap je...

10 years ago | 0

Answered
Creating vectors using variables as endpoints
In MATLAB, if you want to use a structure called RSLT that has fields .lag_min and .date_ct first define them like RSLT.lag_mi...

10 years ago | 0

Answered
Hi, I want to load an excel file into matlab, this code is under gui button "Load Training data"
to load from Excel spreadsheets and workbook you don't need to fopen files. Just use xlsread and xlswrite as explained in res...

10 years ago | 1

Answered
plotting multiple images in subplot
I have modified a zoom basic example: im = imread('image_zoom_in.jpg'); % image_zoom_iun.jpg is your autumn.tif im1 = i...

10 years ago | 10

Answered
How can I remove all the small terms in multiple matrices transformation? It's too hard to read.
1.- all terms 10^(-32) or smaller (10^-48 ?? no atom not even electronsare that small!) straight to the bin, the reason being: ...

10 years ago | 0

Answered
Error using .* .Matrix dimensions must agree
In line % Channel and noise Noise addition y = Ray.*BPSK1 + 10^(-Eb_N0_dB(ii)/20)*awgn; The Ray.*BPSK1 onl...

10 years ago | 0

| accepted

Answered
how can I solve this error?
Kuheli b=0.3; a=1 means you are not really filtering, just attenuating by 0.3 where do you get the values k=[1 ...

10 years ago | 1

Answered
Multi variable simultaneous differential equations with nested function
Hi Isaac Modifying the initial example of the function pdepe please not your s is here u: function pdepe_exercise_01 ...

10 years ago | 2

| accepted

Answered
how to make edit text eccept more than a number
if you start working from others have stopped, you win the effort they've put. Collaboration and cooperation are usually more...

10 years ago | 1

Answered
How to use this probability distribution?
1.- it's good practice to avoid giving names to variables that are reserved for constants, like pi, so let me call the probabil...

10 years ago | 0

Answered
Passing through each element in a matrix just once and randomly
With Stafford's answer, there is a chance you do not get certain combinations and repeat some others, if it's an image, certain ...

10 years ago | 1

Answered
Formatting the color/font of a Cellplot using code
you can generate multiple figures placing the command figure with the numeral differentiating each figure window. For instance: ...

10 years ago | 0

Answered
How can I match multiple contents of an array to a separate single array?
If you really have postcodes along a .csv spreadsheet row, and the codes along another row, then you can do the following: ...

10 years ago | 0

Answered
I am using a colour image to create a 3-d plot of pixel intensity. I have to turn it gray for the project to work, but I would like to know how to make the 3-d plot of pixel intensity, on the original without changing its colour.
What you call pixel intensity, is the grey scale, or luminance. The link you have is just a NxM grey scale. What you seem ...

10 years ago | 0

| accepted

Answered
Largest three digit number in Matlab?
999!!!

10 years ago | 0

Answered
Using textscan with txt
Try just reading row by row fid=fopen('example_text.txt') A={} tline = fgetl(fid) while ischar(tline) A...

10 years ago | 1

| accepted

Load more