PhD student

Answered

need urgent help please anybody modify my simple code

please have a look at doc plot more specifically check the Examples and How To section where it is explained that you ca...

need urgent help please anybody modify my simple code

please have a look at doc plot more specifically check the Examples and How To section where it is explained that you ca...

mer än 4 år ago | 0

Answered

Hi, so I'm trying to plot this equation: y=-(sqrt(288-2*x.^4))/x with x=0:0.05:3.267 but y is giving me a single answer (-6.55) and when i do plot(x,y) the graph is empty! Can someone help me please!

you have forgotten to also use the ./ operator instead of the / operator. The code below should give what you try to achieve ...

Hi, so I'm trying to plot this equation: y=-(sqrt(288-2*x.^4))/x with x=0:0.05:3.267 but y is giving me a single answer (-6.55) and when i do plot(x,y) the graph is empty! Can someone help me please!

you have forgotten to also use the ./ operator instead of the / operator. The code below should give what you try to achieve ...

mer än 4 år ago | 1

Answered

error when using "graph"

what are you trying to do? Graph is not a function in matlab, it is a functionality that can only be used in the MuPAD notebook ...

error when using "graph"

what are you trying to do? Graph is not a function in matlab, it is a functionality that can only be used in the MuPAD notebook ...

mer än 4 år ago | 0

Question

repeated -append sometimes fails with permission denied

in my code I have to save data repeatedly to the same mat.file so I am using the -append command. This works fine, however, some...

mer än 4 år ago | 1 answer | 0

Answered

How to improve the speed of of this function?

you do not need a loop for this, you can just use TRIAL1A_SPACE1 = zeros(size(T1A_raw_TEMP)); TRIAL1A_SPACE1(T1A_raw_TEM...

How to improve the speed of of this function?

you do not need a loop for this, you can just use TRIAL1A_SPACE1 = zeros(size(T1A_raw_TEMP)); TRIAL1A_SPACE1(T1A_raw_TEM...

mer än 4 år ago | 1

Answered

Importing single and multiple files

is this what you try to achieve? if true [fileList, folder] = uigetfile('*.txt',... 'Find the File to Import', ... ...

Importing single and multiple files

is this what you try to achieve? if true [fileList, folder] = uigetfile('*.txt',... 'Find the File to Import', ... ...

mer än 4 år ago | 0

Answered

Comparing columns and returning 0s for matching values

is it a table that you have or an array? Have you looked into ismember to see if this does what you want? doc ismember

Comparing columns and returning 0s for matching values

is it a table that you have or an array? Have you looked into ismember to see if this does what you want? doc ismember

mer än 4 år ago | 2

| accepted

Answered

CSV Date time error

what is your code to read the CSV file? You say that it reads in ok but there might be a better way of reading in your dates suc...

CSV Date time error

what is your code to read the CSV file? You say that it reads in ok but there might be a better way of reading in your dates suc...

mer än 4 år ago | 0

Answered

Good day. May I kindly ask anyone to look at the below script and associated Figure and advise on 1). How to manipulate the "Legend" so it doesnt Interfere/hide the time series. 2). Manage the colors of "time series" so they match thier "trend lines"

please use the documentation of the plot function to see how you can solve this doc plot but this is how you can do it ...

Good day. May I kindly ask anyone to look at the below script and associated Figure and advise on 1). How to manipulate the "Legend" so it doesnt Interfere/hide the time series. 2). Manage the colors of "time series" so they match thier "trend lines"

please use the documentation of the plot function to see how you can solve this doc plot but this is how you can do it ...

mer än 4 år ago | 0

| accepted

Answered

How can I distinguish between events in data?

since all your events have the same number of value, you do not really need the delimiter value to indicate that a new event sta...

How can I distinguish between events in data?

since all your events have the same number of value, you do not really need the delimiter value to indicate that a new event sta...

mer än 4 år ago | 0

| accepted

Answered

How can I change the distance between figures in subplot?

is use this <http://www.mathworks.com/matlabcentral/fileexchange/41370-subplotscm submission> from the file exchange but ther...

How can I change the distance between figures in subplot?

is use this <http://www.mathworks.com/matlabcentral/fileexchange/41370-subplotscm submission> from the file exchange but ther...

mer än 4 år ago | 0

Answered

Incomplete time series, how to fill in NaN in data column?

you could just first create a NaN matrix and then fill in your original values at the dates that you have them available ne...

Incomplete time series, how to fill in NaN in data column?

you could just first create a NaN matrix and then fill in your original values at the dates that you have them available ne...

mer än 4 år ago | 1

| accepted

Answered

Error in saveas, save a plot

the error message is telling you that f1 is not a valid handle to a figure. Could you do ishandle(f1) and tell us what...

Error in saveas, save a plot

the error message is telling you that f1 is not a valid handle to a figure. Could you do ishandle(f1) and tell us what...

mer än 4 år ago | 0

| accepted

Answered

Return rows (not just row number)

just use strfind or strcmp to find the indices varNames = var(:,1); IndexC = strfind(varNames, 'Cat'); Index = find(...

Return rows (not just row number)

just use strfind or strcmp to find the indices varNames = var(:,1); IndexC = strfind(varNames, 'Cat'); Index = find(...

mer än 4 år ago | 1

| accepted

Answered

Variable numerical value in editbox (gui).

If you only want to update the values through this function I would advise against the use of an editbox as this might cause you...

Variable numerical value in editbox (gui).

If you only want to update the values through this function I would advise against the use of an editbox as this might cause you...

mer än 4 år ago | 1

| accepted

Answered

I have an issue with the format of number when i use mean2

this is very common to floating point operations and basically y == 0 if you compare it to the eps value. You should never compa...

I have an issue with the format of number when i use mean2

this is very common to floating point operations and basically y == 0 if you compare it to the eps value. You should never compa...

mer än 4 år ago | 0

| accepted

Answered

New to matlab, in need of help.

it's probably easier if you store the values in one variable, that way you do not need any if-else commands x = zeros(3,1);...

New to matlab, in need of help.

it's probably easier if you store the values in one variable, that way you do not need any if-else commands x = zeros(3,1);...

mer än 4 år ago | 0

Answered

How to position the y axis on the right in a plot

you need to use the handles for this so [hAx,hLine1,hLine2] = plotyy(x,y1,x,y2); xlim(hAx(1),...) xlim(hAx(2),...) ...

How to position the y axis on the right in a plot

you need to use the handles for this so [hAx,hLine1,hLine2] = plotyy(x,y1,x,y2); xlim(hAx(1),...) xlim(hAx(2),...) ...

mer än 4 år ago | 0

| accepted

Answered

I'm new to matlab I'm having trouble with this one.

The most important mistake is adding i to hit in the loop instead of just one, i is a counter that goes from 1 to 10000 so it ge...

I'm new to matlab I'm having trouble with this one.

The most important mistake is adding i to hit in the loop instead of just one, i is a counter that goes from 1 to 10000 so it ge...

mer än 4 år ago | 1

| accepted

Answered

How can I read in a txt file, which is being created by a different programm, and plot the numeric data into a contourf plot continously?

first of all, you call fopen without a corresponding fclose. This will get you into trouble so always close the file again after...

How can I read in a txt file, which is being created by a different programm, and plot the numeric data into a contourf plot continously?

first of all, you call fopen without a corresponding fclose. This will get you into trouble so always close the file again after...

mer än 4 år ago | 0

| accepted

Answered

adding +-10% for each y columns

you do not need to create new columns to do this, just add/subtract the 10% in the plot command directly plot(x1,y1,'k-',x1...

adding +-10% for each y columns

you do not need to create new columns to do this, just add/subtract the 10% in the plot command directly plot(x1,y1,'k-',x1...

mer än 4 år ago | 0

| accepted

Answered

Best practice to retrieve data from a large excel database based on GUI input

have you looked into the function ismember() with the option rows? It looks like this it what you are needing

Best practice to retrieve data from a large excel database based on GUI input

have you looked into the function ismember() with the option rows? It looks like this it what you are needing

mer än 4 år ago | 0

Answered

Read multiple text files and save the data into matrix

if your file always has the same amount of lines you could do something like this (if not, you need to check where the ---- occu...

Read multiple text files and save the data into matrix

if your file always has the same amount of lines you could do something like this (if not, you need to check where the ---- occu...

mer än 4 år ago | 0

| accepted

Answered

How to read multiple .csv and store all the data into one sheet

I would recommend you to use textscan instead of csvread for k=1:numfiles fid = fopen(csvFiles(k,1).name); f...

How to read multiple .csv and store all the data into one sheet

I would recommend you to use textscan instead of csvread for k=1:numfiles fid = fopen(csvFiles(k,1).name); f...

mer än 4 år ago | 0

Answered

getting 2 outputs in a GUI function, then using the outputs in main script

your function works well if you make the following adjustments function [out1,out2]=menu f = figure('Position',[350 350...

getting 2 outputs in a GUI function, then using the outputs in main script

your function works well if you make the following adjustments function [out1,out2]=menu f = figure('Position',[350 350...

mer än 4 år ago | 1

| accepted

Answered

GUI issue edit text boxes not empty when blank

you should use ID = get(handles.InsideDiameterEdit,'String') to check what the value is in the edit-field. It will b...

GUI issue edit text boxes not empty when blank

you should use ID = get(handles.InsideDiameterEdit,'String') to check what the value is in the edit-field. It will b...

mer än 4 år ago | 0

Answered

searching the occurances of a numeric in a cell array

I think using strfind would be a good way, just use sprintf() to format your numbers into a string or use num2string() twice if ...

searching the occurances of a numeric in a cell array

I think using strfind would be a good way, just use sprintf() to format your numbers into a string or use num2string() twice if ...

mer än 4 år ago | 0

Answered

Shifting or sorting arrays with specific names

you could use arrayfun to extract the first and last two letters and then use strfind to locate the index at which the letters t...

Shifting or sorting arrays with specific names

you could use arrayfun to extract the first and last two letters and then use strfind to locate the index at which the letters t...

mer än 4 år ago | 0

| accepted

Answered

Loading files in GUI

your question is not clear to me but have you looked at the function fileparts?

Loading files in GUI

your question is not clear to me but have you looked at the function fileparts?

mer än 4 år ago | 0

Question

fminimax option iter not working

I want to be able to follow the iteration process of fminimax so that I can see if there is improvement or not since my function...

mer än 4 år ago | 1 answer | 0