Respondida
How to read and display multiple images in matlab
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> Your code is equivalent to: fullfile( 'Docum...

más de 9 años hace | 0

Respondida
How to delete all rows made out of a certain vector/array/row values from a matrix?
data( idx, : ) = []; will delete a row (or multiple rows), idx, from a matrix. Since you say you already have a way to fin...

más de 9 años hace | 0

Respondida
Problem with imrect and position vector returned.
I'm not really sure which 'wait' function is being called there. I don't see one in the documentation that takes an imrect as a...

más de 9 años hace | 0

| aceptada

Resuelto


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

más de 9 años hace

Resuelto


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

más de 9 años hace

Respondida
Keeping xlabels but not xticks
hAxes.XAxis.TickLength = [0 0]; where hAxes is your axes handle. This assumes you are using a sufficiently recent version ...

más de 9 años hace | 0

Respondida
Storing the result of display function
result = 1749:1/12:2016; should give the same result in an array.

más de 9 años hace | 1

| aceptada

Respondida
Flipping y-axis of findpeaks-plot
Don't you just want to negate the peak amplitude results rather than flip?

más de 9 años hace | 0

Respondida
Subtracting different matrices with NaN values
Just replace NaNs with 0s e.g. B( isnan(B) ) = 0;

más de 9 años hace | 1

| aceptada

Respondida
When using FFT whats the correlation between linspace and t? In order to get the right frequency the w=linspace(0,2000,length(t))
If 2000 is your sample frequency in Hz then that should be fine for the full double-sided spectrum output of fft. Your plot sho...

más de 9 años hace | 0

| aceptada

Respondida
How to convert ANS to MATRIX?
"To compute elementwise POWER, use POWER (.^) instead" result = ( 1 - y ).^2

más de 9 años hace | 0

| aceptada

Respondida
How to call functions from another m file
You can't if the functions are defined as local functions in the script1 file. Just put the functions in their own separate f...

más de 9 años hace | 7

| aceptada

Respondida
Struct as function input: different inputs?
I'm not entirely sure what you are trying to do here, but you seem to be confusing the 'obj' input/output argument in a class fu...

más de 9 años hace | 0

Respondida
if a value in variable A is equal to the one in varibale B, can I read the B-matching value (variable C) into a new variable D?
if (VAR.event(i).type) == BE.sentence(i) VAR.event(i).accuracy = BE.accuracy(i) end appears to be all you need at...

más de 9 años hace | 0

Resuelto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

más de 9 años hace

Resuelto


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

más de 9 años hace

Respondida
How can I get and read data files from a folder?
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F>

más de 9 años hace | 2

| aceptada

Respondida
How to determine the different dominant frequency components in the signals
doc fft

más de 9 años hace | 0

| aceptada

Respondida
how to read column wise pixels using FOR LOOP
Judging from your last comment what you want is a plot of the number of black pixels in each column of the image: figure; a...

más de 9 años hace | 0

| aceptada

Respondida
Error message after changing the string in GUI
Use dbstop if error and take a look at 'handles'. You appear to have lost the handles structure or replaced it with som...

más de 9 años hace | 0

Respondida
How to edit code generated with App Designer?
As far as I am aware the greyed out parts of the automatic code are un-editable. Everything else is editable as normal, althoug...

más de 9 años hace | 1

Respondida
Loading excel file by GUI
<https://uk.mathworks.com/help/matlab/creating_guis/share-data-among-callbacks.html How to share data among GUI callbacks>

más de 9 años hace | 0

| aceptada

Respondida
Convert cell array to array of strings
s = string( a ); C = arrayfun( @(x) strsplit( x, '_' ), s, 'UniformOutput', false ); should work, or you could just use ...

más de 9 años hace | 0

Respondida
What is the difference between clear and clearvars?
In those simplest forms I don't think there is any difference. Both have extended arguments though that make them different, es...

más de 9 años hace | 0

| aceptada

Respondida
for a range of x, say x=10, i need for x=1 to 3, y= f(x); for x= 4 to 7, y=g(x); for x=8 to 10, y=h(x); and how to present graph of x and y with x=1 to 10 using matlab coding?
There are many ways to make your code neater, but for minimal changes to what you have done, you need to assign results to an ar...

más de 9 años hace | 0

| aceptada

Respondida
Want to combine RGB plane to form a specific color in an image
t1_r(1:5,1:5)=uint8(142) t1_g(1:5,1:5)=uint8(111) t1_b(1:5,1:5)=uint8(238) i1=cat(3,t1_r,t1_g,t1_b); figure; imsho...

más de 9 años hace | 0

Respondida
How to pass new value of parameter from GUI into .m script?
Use a function instead of a script and it is trivial number = str2double( get( hObject, 'String' ) ); myFunc( number ); ...

más de 9 años hace | 0

| aceptada

Respondida
I want to change matrix value
myArray( myArray ~= someValue ) = someOtherValue;

más de 9 años hace | 0

Respondida
get character value from decimal
You should use doc num2str to convert a number to a string/char. Using direct casting will just give you whatever the U...

más de 9 años hace | 0

Respondida
How do I rectify the problem of [subscripted assignment dimension mismatch; at Line: dmdt(1) = N]? Much Thanks!
It depends what you intended as to how to fix it. Use a cell array if you really want to store everything that is returned. Yo...

más de 9 años hace | 0

Cargar más