Réponse apportée
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

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
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: ...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
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. ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
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 ...

environ 10 ans il y a | 0

Réponse apportée
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 ...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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/...

environ 10 ans il y a | 1

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 1

Réponse apportée
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...

environ 10 ans il y a | 10

Réponse apportée
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: ...

environ 10 ans il y a | 0

Réponse apportée
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...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 10 ans il y a | 1

Réponse apportée
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 ...

environ 10 ans il y a | 2

| A accepté

Réponse apportée
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...

environ 10 ans il y a | 1

Réponse apportée
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...

environ 10 ans il y a | 0

Réponse apportée
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 ...

environ 10 ans il y a | 1

Réponse apportée
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: ...

environ 10 ans il y a | 0

Réponse apportée
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: ...

environ 10 ans il y a | 0

Réponse apportée
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 ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Largest three digit number in Matlab?
999!!!

environ 10 ans il y a | 0

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

environ 10 ans il y a | 1

| A accepté

Charger plus