Question

How to extract specific column from multiple csv and store as different columns as output table ?

Hello All, I am working on multiple csv analysis. I could come till extracting specified column from these multiple CSV and put...

29 giorni ago | 1 answer | 0

Answered

find row with certain value and put in cell

Change last line to this: result= cellfun(@(res) unique(res),res,'UniformOutput',false) And let us know if this is what yo...

find row with certain value and put in cell

Change last line to this: result= cellfun(@(res) unique(res),res,'UniformOutput',false) And let us know if this is what yo...

2 mesi ago | 0

Answered

Selecting files based on name - how to select files WITHOUT suffix

You can try this: [filepath,name,ext] = fileparts(YourFileName);

Selecting files based on name - how to select files WITHOUT suffix

You can try this: [filepath,name,ext] = fileparts(YourFileName);

2 mesi ago | 0

Question

saving .mat file with matrix instead of cell arrays

Hello All, With reference to this question : https://in.mathworks.com/matlabcentral/answers/444506-saving-array-values-as-mat-f...

2 mesi ago | 0 answers | 0

Question

Saving array values as .mat file

Hello All, What I am trying to do is I have bunch of .csv files. Most of them have autogenerated garbage things written before ...

2 mesi ago | 0 answers | 0

Question

Reading text file with number and strings

Hello All, I am working on a script where I am requesting user to select file and provide inputs. Here is the code I am using:...

circa un anno ago | 1 answer | 0

Question

Hiding workspace values in Pcode

Hello All, I am trying to distribute my code as protected P code. The only thing I am not happy after conversion is the variabl...

circa un anno ago | 1 answer | 0

Question

Creating tool license function

Hi, I have created a basic tool to calculate few of the formulas which I was working on. Now I have converted into a simple sc...

circa un anno ago | 1 answer | 0

Question

creating array of fix and changing variables for xlswrite export

Hello All, I am in need of exporting my calculations to an excel spreadsheet. As shown in here: <https://in.mathworks.com/matl...

circa 2 anni ago | 1 answer | 0

Question

How to change default message box when using xlsread(filename,-1)

Hello All, I am using xlsread(filename,-1) in my code where my intent is to give user ability to select specific data on a exce...

circa 2 anni ago | 1 answer | 0

Question

Using save() and -ascii format to limit output numbers to 2 decimals

Hello All, I need help with save() command. here is the extract of my code: save(fullfile(PathName,filename),'x','-ascii')...

circa 2 anni ago | 1 answer | 0

Question

Please help me understand the meaning of this [Amax,Bmax]=max(max(AB,[ ],2));

Hello All, I am looking for meaning out of a code I am having. the line in the code is: AB=[2:0.1:7]; [Amax,Bmax]=max(...

circa 2 anni ago | 1 answer | 0

Question

Setting popup menu strings from excel

I am reading the excel spreadsheet as follows: function upload_Callback(hObject, eventdata, handles) % hObject handle...

circa 2 anni ago | 1 answer | 0

Question

How to transfer inputs through matlab script to Matlab standalone .exe

Hello All, I have built the standalone .exe for one of my equation calculations. It takes couple of inputs rom user in a edit b...

circa 2 anni ago | 1 answer | 0

Answered

How to form a decimal vector for a cell array

Try to use reshape. Here is quick code: m=1:1624; n=reshape(m,203,8); Modify it as per your requirements

How to form a decimal vector for a cell array

Try to use reshape. Here is quick code: m=1:1624; n=reshape(m,203,8); Modify it as per your requirements

circa 2 anni ago | 0

Question

xlswrite with flexible column range

Hello All, I have a script which reads the data from excel file interactively such that: data=xlsread(xlsname, -1); Whe...

circa 2 anni ago | 1 answer | 0

Answered

how to trace matlab code? and how to backtrack?

not sure what you mean by "tracing". If you have the "code" then that should be sufficient to understand how it works. I would s...

how to trace matlab code? and how to backtrack?

not sure what you mean by "tracing". If you have the "code" then that should be sufficient to understand how it works. I would s...

circa 2 anni ago | 0

Answered

About looping a matrix

add a for loop. something similar to: for i=1:50 C(i)=Z(i)*B(i) . . . end

About looping a matrix

add a for loop. something similar to: for i=1:50 C(i)=Z(i)*B(i) . . . end

circa 2 anni ago | 0

Answered

To transfer datas among the GUIs

try using setappdata instead! Getappdata returns values while setappdata stores it. More information: http://...

To transfer datas among the GUIs

try using setappdata instead! Getappdata returns values while setappdata stores it. More information: http://...

oltre 2 anni ago | 0

Answered

How can I find out the first execution of the function?

Well, your requirements are not clear. What I understood is, you have a script which calls different function files and you wan...

How can I find out the first execution of the function?

Well, your requirements are not clear. What I understood is, you have a script which calls different function files and you wan...

oltre 2 anni ago | 1

Answered

How to combine quantities of different units to depict a cost function?

Just my thoughts, can't you create 3 different functions for each of A,B and C and then give a random array or array [0:0.01:1] ...

How to combine quantities of different units to depict a cost function?

Just my thoughts, can't you create 3 different functions for each of A,B and C and then give a random array or array [0:0.01:1] ...

oltre 2 anni ago | 0

| accepted

Answered

matlab operator What does the fzero command do?

You can read in details what it does by simply writing this on command line: help fzero

matlab operator What does the fzero command do?

You can read in details what it does by simply writing this on command line: help fzero

oltre 2 anni ago | 0

Answered

how to reshape a matrix?

If you are okay with replacing NaN values with Zeros then: A(isnan(A))=0 Here A will be your matrix.

how to reshape a matrix?

If you are okay with replacing NaN values with Zeros then: A(isnan(A))=0 Here A will be your matrix.

oltre 2 anni ago | 0

Answered

[help] combining 2 matrix problems

Isn't it simply ? C=A+B;

[help] combining 2 matrix problems

Isn't it simply ? C=A+B;

oltre 2 anni ago | 1

| accepted

Question

Why 2015a plot colors so dull compared to 2013b ? How to fix it?

Hello All, I recently updated to 2015a from 2013b. Now I am facing something weird with plot colors. I have nothing changed in ...

oltre 2 anni ago | 1 answer | 0

Question

Extracting data from GT suite with MATLAB ?

Hello All, I am currently working on MATLAB to post process forces obtained from GT suite. Currently the process is a bit time ...

oltre 2 anni ago | 0 answers | 0

Question

How to use ode45 with initial conditions defined in script?

Hello, I am using ode45 to solve a differential equation. Here is the function file: primary.m function TempP=primary(T...

oltre 2 anni ago | 2 answers | 0

Question

Need help with set of ode

Hello All, Attached are the set of ode which I am trying to code. Done with 1st two but not sure how to do the remaining. Your...

oltre 2 anni ago | 0 answers | 0

Question

Calling userdefined value from GUI .m file into function .m file

Hello all, I need help in calling user defined value from GUI .m file to function .m file. I have GUI .m file which call diffe...

oltre 2 anni ago | 0 answers | 0

Question

How to use pushbutton to stop a loop?

Hello All, I am working on the GUI of my code. I have start code which works in for loop. More the user inputs bigger loops. So...

circa 3 anni ago | 1 answer | 1