Risposto
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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 10

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 2

| accettato

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 0

| accettato

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

quasi 10 anni fa | 0

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

quasi 10 anni fa | 1

| accettato

Carica altro