Beantwortet
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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 10

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 2

| akzeptiert

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

| akzeptiert

Mehr laden