Respondida
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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

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

casi 10 años hace | 10

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

casi 10 años hace | 0

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 1

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

casi 10 años hace | 2

| aceptada

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

casi 10 años hace | 1

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

casi 10 años hace | 0

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

casi 10 años hace | 1

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

Cargar más